This commit is contained in:
kris89 2014-01-06 06:06:01 -08:00
commit d402e1bf27

View file

@ -377,6 +377,7 @@ syn match phpMemberSelector "->" contained display
syn match phpVarSelector "\$" contained display syn match phpVarSelector "\$" contained display
" highlight object variables inside strings " highlight object variables inside strings
syn match phpMethodsVar "->\h\w*" contained contains=phpMethods,phpMemberSelector display containedin=phpStringDouble syn match phpMethodsVar "->\h\w*" contained contains=phpMethods,phpMemberSelector display containedin=phpStringDouble
syn match phpClasses "\v[A-Za-z]+(::)@=" contained display
" Identifier " Identifier
syn match phpIdentifier "$\h\w*" contained contains=phpEnvVar,phpIntVar,phpVarSelector display syn match phpIdentifier "$\h\w*" contained contains=phpEnvVar,phpIntVar,phpVarSelector display
@ -413,12 +414,13 @@ endif
" Todo " Todo
syn keyword phpTodo todo fixme xxx note contained syn keyword phpTodo todo fixme xxx note contained
syn match phpCommentSelector "\v\@(return|var|param)" contained
" Comment " Comment
if exists("php_parent_error_open") if exists("php_parent_error_open")
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,@Spell syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,phpCommentSelector,@Spell
else else
syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,@Spell extend syn region phpComment start="/\*" end="\*/" contained contains=phpTodo,phpCommentSelector,@Spell extend
endif endif
if version >= 600 if version >= 600
syn match phpComment "#.\{-}\(?>\|$\)\@=" contained contains=phpTodo,@Spell syn match phpComment "#.\{-}\(?>\|$\)\@=" contained contains=phpTodo,@Spell
@ -542,6 +544,7 @@ if !exists("did_php_syn_inits")
hi def link phpException 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 phpCommentSelector PreProc
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 phpSpecial PreProc