Update template file and re-generate using PHP 5.5.7
$ php -v PHP 5.5.7-1+sury.org~saucy+1 (cli) (built: Dec 12 2013 21:54:59) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans
This commit is contained in:
parent
200921f568
commit
c85155b2c2
2 changed files with 51 additions and 37 deletions
|
@ -1,9 +1,20 @@
|
||||||
" Vim syntax file
|
" Vim syntax file
|
||||||
" Language: PHP 5.3 & up
|
" Language: PHP 5.3 & up
|
||||||
|
"
|
||||||
" Maintainer: Paul Garvin <paul@paulgarvin.net>
|
" Maintainer: Paul Garvin <paul@paulgarvin.net>
|
||||||
|
"
|
||||||
" Contributor: Stan Angeloff <stanimir@angeloff.name>
|
" Contributor: Stan Angeloff <stanimir@angeloff.name>
|
||||||
" URL: https://github.com/StanAngeloff/php.vim
|
" URL: https://github.com/StanAngeloff/php.vim
|
||||||
"
|
"
|
||||||
|
" Contributor: Alessandro Antonello <aleantonello@hotmail.com>
|
||||||
|
" URL: https://github.com/aantonello/php.vim
|
||||||
|
"
|
||||||
|
" Contributor: Tim Carry <tim@pixelastic.com>
|
||||||
|
" URL: https://github.com/pixelastic/php.vim
|
||||||
|
"
|
||||||
|
" Contributor: Joshua Sherman <josh@gravityblvd.com>
|
||||||
|
" URL: https://github.com/joshtronic/php.vim
|
||||||
|
"
|
||||||
" Former Maintainer: Peter Hodge <toomuchphp-vim@yahoo.com>
|
" Former Maintainer: Peter Hodge <toomuchphp-vim@yahoo.com>
|
||||||
" Former URL: http://www.vim.org/scripts/script.php?script_id=1571
|
" Former URL: http://www.vim.org/scripts/script.php?script_id=1571
|
||||||
"
|
"
|
||||||
|
@ -113,7 +124,10 @@ ${code}
|
||||||
syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar
|
syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar
|
||||||
|
|
||||||
" Control Structures
|
" Control Structures
|
||||||
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 phpKeyword if echo else elseif while do for foreach function break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare print new clone contained
|
||||||
|
|
||||||
|
" Exception Keywords
|
||||||
|
syn keyword phpKeyword try catch finally throw contained
|
||||||
|
|
||||||
" Class Keywords
|
" Class Keywords
|
||||||
syn keyword phpType class abstract extends interface implements static final var public private protected const trait contained
|
syn keyword phpType class abstract extends interface implements static final var public private protected const trait contained
|
||||||
|
@ -121,14 +135,8 @@ syn keyword phpType class abstract extends interface implements static final var
|
||||||
" 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
|
||||||
|
|
||||||
" Exception Keywords
|
|
||||||
syn keyword phpStatement try catch throw contained
|
|
||||||
|
|
||||||
" Language Constructs
|
" Language Constructs
|
||||||
syn keyword phpStatement die exit eval empty isset unset list instanceof insteadof contained
|
syn keyword phpKeyword die exit eval empty isset unset list instanceof insteadof contained
|
||||||
|
|
||||||
" These special keywords have traditionally received special colors
|
|
||||||
syn keyword phpSpecial function echo print new clone contained
|
|
||||||
|
|
||||||
" Include & friends
|
" Include & friends
|
||||||
syn keyword phpInclude include include_once require require_once namespace use contained
|
syn keyword phpInclude include include_once require require_once namespace use contained
|
||||||
|
@ -177,6 +185,11 @@ syn match phpSpecialChar +\\"+ contained display
|
||||||
syn match phpStrEsc "\\\\" contained display
|
syn match phpStrEsc "\\\\" contained display
|
||||||
syn match phpStrEsc "\\'" contained display
|
syn match phpStrEsc "\\'" contained display
|
||||||
|
|
||||||
|
" Format specifiers (printf)
|
||||||
|
" See https://github.com/aantonello/php.vim/commit/9d24eab4ea4b3752a54aebf14d3491b6d8edb6d8
|
||||||
|
syn match phpSpecialChar display contained /%\(\d\+\$\)\=[-+' #0*]*\(\d*\|\*\|\*\d\+\$\)\(\.\(\d*\|\*\|\*\d\+\$\)\)\=\([aAbBdiouxXDOUfFeEgGcCsSpnmMyYhH]\|\[\^\=.[^]]*\]\)/ containedin=phpStringSingle,phpStringDouble,phpHereDoc
|
||||||
|
syn match phpSpecialChar display contained /%%/ containedin=phpStringSingle,phpStringDouble,phpHereDoc
|
||||||
|
|
||||||
" Error
|
" Error
|
||||||
syn match phpOctalError "[89]" contained display
|
syn match phpOctalError "[89]" contained display
|
||||||
if exists("php_parent_error_close")
|
if exists("php_parent_error_close")
|
||||||
|
@ -204,13 +217,13 @@ endif
|
||||||
|
|
||||||
" String
|
" String
|
||||||
if exists("php_parent_error_open")
|
if exists("php_parent_error_open")
|
||||||
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
syn region phpStringDouble matchgroup=phpStringDelimiter start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
||||||
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
syn region phpBacktick matchgroup=phpStringDelimiter start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained keepend
|
||||||
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend
|
syn region phpStringSingle matchgroup=phpStringDelimiter start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend
|
||||||
else
|
else
|
||||||
syn region phpStringDouble matchgroup=None start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
syn region phpStringDouble matchgroup=phpStringDelimiter start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
||||||
syn region phpBacktick matchgroup=None start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
syn region phpBacktick matchgroup=phpStringDelimiter start=+`+ skip=+\\\\\|\\"+ end=+`+ contains=@Spell,@phpAddStrings,phpIdentifier,phpSpecialChar,phpIdentifierSimply,phpIdentifierComplex,phpStrEsc contained extend keepend
|
||||||
syn region phpStringSingle matchgroup=None start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend extend
|
syn region phpStringSingle matchgroup=phpStringDelimiter start=+'+ skip=+\\\\\|\\'+ end=+'+ contains=@Spell,@phpAddStrings,phpStrEsc contained keepend extend
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" HereDoc
|
" HereDoc
|
||||||
|
@ -239,9 +252,9 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Clusters
|
" Clusters
|
||||||
syn cluster phpClConst contains=phpFunctions,phpClasses,phpIdentifier,phpStatement,phpOperator,phpStringSingle,phpStringDouble,phpBacktick,phpNumber,phpType,phpBoolean,phpStructure,phpMethodsVar,phpConstants,phpException,phpSuperglobals,phpMagicConstants,phpServerVars
|
syn cluster phpClConst contains=phpFunctions,phpClasses,phpIdentifier,phpStatement,phpKeyword,phpOperator,phpStringSingle,phpStringDouble,phpBacktick,phpNumber,phpType,phpBoolean,phpStructure,phpMethodsVar,phpConstants,phpException,phpSuperglobals,phpMagicConstants,phpServerVars
|
||||||
syn cluster phpClInside contains=@phpClConst,phpComment,phpParent,phpParentError,phpInclude,phpHereDoc,phpNowDoc
|
syn cluster phpClInside contains=@phpClConst,phpComment,phpParent,phpParentError,phpInclude,phpHereDoc,phpNowDoc
|
||||||
syn cluster phpClFunction contains=@phpClInside,phpDefine,phpParentError,phpStorageClass,phpSpecial
|
syn cluster phpClFunction contains=@phpClInside,phpDefine,phpParentError,phpStorageClass,phpKeyword
|
||||||
syn cluster phpClTop contains=@phpClFunction,phpFoldFunction,phpFoldClass,phpFoldInterface,phpFoldTry,phpFoldCatch
|
syn cluster phpClTop contains=@phpClFunction,phpFoldFunction,phpFoldClass,phpFoldInterface,phpFoldTry,phpFoldCatch
|
||||||
|
|
||||||
" Php Region
|
" Php Region
|
||||||
|
@ -298,32 +311,33 @@ if !exists("did_php_syn_inits")
|
||||||
hi def link phpServerVars Constant
|
hi def link phpServerVars Constant
|
||||||
hi def link phpConstants Constant
|
hi def link phpConstants Constant
|
||||||
hi def link phpBoolean Constant
|
hi def link phpBoolean Constant
|
||||||
hi def link phpNumber Constant
|
hi def link phpNumber Number
|
||||||
hi def link phpStringSingle String
|
hi def link phpStringSingle String
|
||||||
hi def link phpStringDouble String
|
hi def link phpStringDouble String
|
||||||
hi def link phpBacktick String
|
hi def link phpBacktick String
|
||||||
|
hi def link phpStringDelimiter String
|
||||||
hi def link phpHereDoc String
|
hi def link phpHereDoc String
|
||||||
hi def link phpNowDoc String
|
hi def link phpNowDoc String
|
||||||
hi def link phpFunctions Identifier
|
hi def link phpFunctions Function
|
||||||
hi def link phpClasses Identifier
|
hi def link phpMethods Function
|
||||||
hi def link phpMethods Identifier
|
hi def link phpClasses StorageClass
|
||||||
|
hi def link phpException StorageClass
|
||||||
hi def link phpIdentifier Identifier
|
hi def link phpIdentifier Identifier
|
||||||
hi def link phpIdentifierSimply Identifier
|
hi def link phpIdentifierSimply Identifier
|
||||||
hi def link phpStatement Statement
|
hi def link phpStatement Statement
|
||||||
hi def link phpStructure Statement
|
hi def link phpStructure Statement
|
||||||
hi def link phpException Statement
|
|
||||||
hi def link phpOperator Operator
|
hi def link phpOperator Operator
|
||||||
hi def link phpVarSelector Operator
|
hi def link phpVarSelector Operator
|
||||||
hi def link phpInclude PreProc
|
hi def link phpInclude PreProc
|
||||||
hi def link phpDefine PreProc
|
hi def link phpDefine PreProc
|
||||||
hi def link phpSpecial PreProc
|
hi def link phpKeyword Keyword
|
||||||
hi def link phpFCKeyword PreProc
|
hi def link phpFCKeyword Keyword
|
||||||
|
hi def link phpSCKeyword Keyword
|
||||||
hi def link phpType Type
|
hi def link phpType Type
|
||||||
hi def link phpSCKeyword Type
|
hi def link phpMemberSelector Operator
|
||||||
hi def link phpMemberSelector Type
|
|
||||||
hi def link phpSpecialChar Special
|
|
||||||
hi def link phpStrEsc Special
|
|
||||||
hi def link phpParent Special
|
hi def link phpParent Special
|
||||||
|
hi def link phpSpecialChar SpecialChar
|
||||||
|
hi def link phpStrEsc SpecialChar
|
||||||
hi def link phpParentError Error
|
hi def link phpParentError Error
|
||||||
hi def link phpOctalError Error
|
hi def link phpOctalError Error
|
||||||
hi def link phpTodo Todo
|
hi def link phpTodo Todo
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue