From c8f7b3c46096b1ae8533c97bc67ec1740e29fda7 Mon Sep 17 00:00:00 2001 From: Giorgos Mylonas Date: Sun, 8 Apr 2018 05:45:24 +0000 Subject: [PATCH] Add phpNull as keyword --- syntax/php.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/syntax/php.vim b/syntax/php.vim index a90ce5b..a7bb328 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -562,6 +562,9 @@ syn region phpIdentifierComplex matchgroup=phpParent start="{\$"rs=e-1 end="}" " Boolean syn keyword phpBoolean true false contained +" NULL +syn keyword phpNull null contained + " Number syn match phpNumber "\<\d\+\>" contained display syn match phpNumber "-\d\+\>" contained display @@ -727,7 +730,7 @@ syn keyword phpKeyword function contained syn match phpFunction /\h\w*/ contained " 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 +syn cluster phpClConst contains=phpFunctions,phpClasses,phpStaticClasses,phpIdentifier,phpStatement,phpKeyword,phpOperator,phpSplatOperator,phpStringSingle,phpStringDouble,phpBacktick,phpNumber,phpType,phpBoolean,phpNull,phpStructure,phpMethodsVar,phpConstants,phpException,phpSuperglobals,phpMagicConstants,phpServerVars syn cluster phpClInside contains=@phpClConst,phpComment,phpDocComment,phpParent,phpParentError,phpInclude,phpHereDoc,phpNowDoc syn cluster phpClFunction contains=@phpClInside,phpDefine,phpParentError,phpStorageClass,phpKeyword syn cluster phpClControl contains=phpFoldIfContainer,phpFoldWhile,phpFoldDoWhile,phpFoldFor,phpFoldForeach,phpFoldTryContainer,phpFoldSwitch @@ -812,6 +815,7 @@ if !exists("did_php_syn_inits") hi def link phpMagicConstants Constant hi def link phpServerVars Constant hi def link phpConstants Constant + hi def link phpNull Constant hi def link phpBoolean Boolean hi def link phpNumber Number hi def link phpStringSingle String