File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -519,7 +519,7 @@ syn keyword phpStatement __construct __destruct __call __callStatic __get __set
519519syn keyword phpKeyword die exit eval empty isset unset list instanceof insteadof contained
520520
521521" Include & friends
522- syn keyword phpInclude include include_once require require_once namespace use contained
522+ syn keyword phpInclude include include_once require require_once namespace contained
523523
524524" Types
525525syn keyword phpType bool[ean] int[eger] real double float string array object null self parent global this stdClass callable contained
@@ -679,6 +679,16 @@ syntax match phpClassImplements contained
679679syntax match phpClassDelimiter contained
680680 \ nextgroup= phpClassImplements skipwhite skipempty /,/
681681
682+ " use statement
683+ syn keyword phpInclude use contained
684+ \ nextgroup= phpUseFunction,phpUseClass skipwhite skipempty
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
691+
682692" Function name
683693syn keyword phpKeyword function contained
684694 \ nextgroup= phpFunction skipwhite skipempty
You can’t perform that action at this time.
0 commit comments