Basic PHP 5.4 support.
This commit adds support for: - New Core constants, - New language keywords: trait, insteadof, - New types, e.g., calleable and binary numbers.
This commit is contained in:
parent
c74b98e131
commit
eae050302e
2 changed files with 9 additions and 7 deletions
|
@ -111,7 +111,7 @@ syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStrin
|
||||||
syn keyword phpStatement if else elseif while do for foreach break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare contained
|
syn keyword phpStatement if else elseif while do for foreach break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare contained
|
||||||
|
|
||||||
" Class Keywords
|
" Class Keywords
|
||||||
syn keyword phpType class abstract extends interface implements static final var public private protected const contained
|
syn keyword phpType class abstract extends interface implements static final var public private protected const trait contained
|
||||||
|
|
||||||
" Magic Methods
|
" Magic Methods
|
||||||
syn keyword phpStatement __construct __destruct __call __callStatic __get __set __isset __unset __sleep __wakeup __toString __invoke __set_state __clone contained
|
syn keyword phpStatement __construct __destruct __call __callStatic __get __set __isset __unset __sleep __wakeup __toString __invoke __set_state __clone contained
|
||||||
|
@ -120,7 +120,7 @@ syn keyword phpStatement __construct __destruct __call __callStatic __get __set
|
||||||
syn keyword phpStatement try catch throw contained
|
syn keyword phpStatement try catch throw contained
|
||||||
|
|
||||||
" Language Constructs
|
" Language Constructs
|
||||||
syn keyword phpStatement die exit eval empty isset unset list instanceof contained
|
syn keyword phpStatement die exit eval empty isset unset list instanceof insteadof contained
|
||||||
|
|
||||||
" These special keywords have traditionally received special colors
|
" These special keywords have traditionally received special colors
|
||||||
syn keyword phpSpecial function echo print new clone contained
|
syn keyword phpSpecial function echo print new clone contained
|
||||||
|
@ -129,7 +129,7 @@ syn keyword phpSpecial function echo print new clone contained
|
||||||
syn keyword phpInclude include include_once require require_once namespace use contained
|
syn keyword phpInclude include include_once require require_once namespace use contained
|
||||||
|
|
||||||
" Types
|
" Types
|
||||||
syn keyword phpType bool[ean] int[eger] real double float string array object null self parent global this stdClass contained
|
syn keyword phpType bool[ean] int[eger] real double float string array object null self parent global this stdClass callable contained
|
||||||
|
|
||||||
" Operator
|
" Operator
|
||||||
syn match phpOperator "[-=+%^&|*!.~?:]" contained display
|
syn match phpOperator "[-=+%^&|*!.~?:]" contained display
|
||||||
|
@ -157,6 +157,7 @@ syn keyword phpBoolean true false contained
|
||||||
" Number
|
" Number
|
||||||
syn match phpNumber "-\=\<\d\+\>" contained display
|
syn match phpNumber "-\=\<\d\+\>" contained display
|
||||||
syn match phpNumber "\<0x\x\{1,8}\>" contained display
|
syn match phpNumber "\<0x\x\{1,8}\>" contained display
|
||||||
|
syn match phpNumber "\<0b[01]\+\>" contained display
|
||||||
|
|
||||||
" Float
|
" Float
|
||||||
syn match phpNumber "\(-\=\<\d+\|-\=\)\.\d\+\>" contained display
|
syn match phpNumber "\(-\=\<\d+\|-\=\)\.\d\+\>" contained display
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue