Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

Support "use function" properly. Fixes #42. #45

Merged
merged 1 commit into from
Nov 12, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion syntax/php.vim
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ syntax match phpClassDelimiter contained
" Function name
syn keyword phpKeyword function contained
\ nextgroup=phpFunction skipwhite skipempty
syn match phpFunction /\h\w*/
syn match phpFunction /\(use\sfunction\s*\)\@<!\h\w*/

" Clusters
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
Expand Down