File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -682,9 +682,12 @@ syntax match phpClassDelimiter contained
682682" use statement
683683syn keyword phpInclude use contained
684684 \ nextgroup= phpUseFunction,phpUseClass skipwhite skipempty
685- syn match phpUseFunction / function\s\+\(\\\|\h\w *\) *\h\w */ contained contains =phpUseKeyword
686- syn match phpUseClass / \( function\s\+\)\@ !\(\\\|\h\w *\) *\h\w */ contained
687- syn match phpUseKeyword / function\s\+ / contained contains =phpKeyword
685+ syn match phpUseFunction / function\_ s\+\(\\\|\h\w *\) *\h\w */ contained contains =phpUseKeyword
686+ \ nextgroup= phpUseAlias skipwhite skipempty
687+ syn match phpUseClass / \( function\_ s\+\)\@ !\(\\\|\h\w *\) *\h\w */ contained
688+ \ nextgroup= phpUseAlias skipwhite skipempty
689+ syn match phpUseAlias / as\_ s\+\h\w */ contained contains =phpUseKeyword
690+ syn match phpUseKeyword / \( function\| as\)\_ s\+ / contained contains =phpKeyword
688691
689692" Function name
690693syn keyword phpKeyword function contained
You can’t perform that action at this time.
0 commit comments