Skip to content

Commit cc1d95a

Browse files
committed
Support "use function" properly. Fixes StanAngeloff#42.
1 parent 502c96d commit cc1d95a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/php.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ syntax match phpClassDelimiter contained
682682
" Function name
683683
syn keyword phpKeyword function contained
684684
\ nextgroup=phpFunction skipwhite skipempty
685-
syn match phpFunction /\h\w*/
685+
syn match phpFunction /\(use\sfunction\s*\)\@<!\h\w*/
686686

687687
" Clusters
688688
syn cluster phpClConst contains=phpFunctions,phpClasses,phpStaticClasses,phpIdentifier,phpStatement,phpKeyword,phpOperator,phpSplatOperator,phpStringSingle,phpStringDouble,phpBacktick,phpNumber,phpType,phpBoolean,phpStructure,phpMethodsVar,phpConstants,phpException,phpSuperglobals,phpMagicConstants,phpServerVars

0 commit comments

Comments
 (0)