File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,8 @@ PHP does not have an \"enum\"-like keyword."
469469 php '(" implements" " extends" ))
470470
471471(c-lang-defconst c-type-list-kwds
472- php '(" new" " use" " implements" " extends" " namespace" " instanceof" " insteadof" ))
472+ php '(" @new" ; ; @new is *NOT* language construct, it's workaround for coloring.
473+ " new" " use" " implements" " extends" " namespace" " instanceof" " insteadof" ))
473474
474475(c-lang-defconst c-ref-list-kwds
475476 php nil )
@@ -1380,7 +1381,6 @@ a completion list."
13801381 ; ; only add patterns here if you want to prevent cc-mode from applying
13811382 ; ; a different face.
13821383 `(
1383- (" \\ <\\ (@\\ )" 1 'php-errorcontrol-op )
13841384 ; ; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but
13851385 ; ; not in $obj->var()
13861386 (" \\ (->\\ )\\ (\\ sw+\\ )\\ s-*(" (1 'php-object-op ) (2 'php-method-call ))
@@ -1436,6 +1436,7 @@ a completion list."
14361436 ; ; already fontified by another pattern. Note that using OVERRIDE
14371437 ; ; is usually overkill.
14381438 `(
1439+ (" \\ <\\ (@\\ )" 1 'php-errorcontrol-op )
14391440 ; ; Highlight all upper-cased symbols as constant
14401441 (" \\ <\\ ([A-Z_][A-Z0-9_]+\\ )\\ >" 1 'php-constant )
14411442
You can’t perform that action at this time.
0 commit comments