|
1 | 1 | " Vim syntax file |
2 | 2 | " Language: PHP 5.3 & up |
3 | 3 | " Maintainer: Paul Garvin <paul@paulgarvin.net> |
4 | | -" Last Change: April 2, 2010 |
| 4 | +" Last Change: October 12, 2012 |
5 | 5 | " URL: |
6 | 6 | " |
7 | 7 | " Former Maintainer: Peter Hodge <toomuchphp-vim@yahoo.com> |
@@ -59,7 +59,7 @@ if !exists("main_syntax") |
59 | 59 | let main_syntax = 'php' |
60 | 60 | endif |
61 | 61 |
|
62 | | -runtime! syntax/html.vim |
| 62 | +runtime syntax/html.vim |
63 | 63 | unlet! b:current_syntax |
64 | 64 | " HTML syntax file turns on spelling for all top level words, we attempt to turn off |
65 | 65 | syntax spell default |
@@ -466,7 +466,7 @@ syn match phpVarSelector "\$" contained display |
466 | 466 | syn match phpMethodsVar "->\h\w*" contained contains=phpMethods,phpMemberSelector display containedin=phpStringDouble |
467 | 467 |
|
468 | 468 | " Identifier |
469 | | -syn match phpIdentifier "$\h\w*" contained contains=phpEnvVar,phpIntVar,phpVarSelector display |
| 469 | +syn match phpIdentifier "$\h\w*" contained contains=phpSuperglobals,phpVarSelector display |
470 | 470 | syn match phpIdentifierSimply "${\h\w*}" contains=phpOperator,phpParent contained display |
471 | 471 | syn region phpIdentifierComplex matchgroup=phpParent start="{\$"rs=e-1 end="}" contains=phpIdentifier,phpMemberSelector,phpVarSelector,phpIdentifierArray contained extend |
472 | 472 | syn region phpIdentifierArray matchgroup=phpParent start="\[" end="]" contains=@phpClInside contained |
@@ -620,7 +620,7 @@ endif |
620 | 620 | if !exists("did_php_syn_inits") |
621 | 621 |
|
622 | 622 | hi def link phpComment Comment |
623 | | - hi def link phpSuperglobals Constant |
| 623 | + hi def link phpSuperglobals Type |
624 | 624 | hi def link phpMagicConstants Constant |
625 | 625 | hi def link phpServerVars Constant |
626 | 626 | hi def link phpConstants Constant |
|
0 commit comments