From dface50c42172e26044da887566cb137118e236a Mon Sep 17 00:00:00 2001 From: Stan Angeloff Date: Thu, 2 Jan 2014 17:28:18 +0200 Subject: [PATCH] Add 'yield' to the list of keywords (as of PHP 5.5). --- syntax/php.template | 2 +- syntax/php.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/php.template b/syntax/php.template index 91f2c38..9878af6 100644 --- a/syntax/php.template +++ b/syntax/php.template @@ -124,7 +124,7 @@ ${code} syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar " Control Structures -syn keyword phpKeyword if echo else elseif while do for foreach function break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare print new clone contained +syn keyword phpKeyword if echo else elseif while do for foreach function break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare print new clone yield contained " Exception Keywords syn keyword phpKeyword try catch finally throw contained diff --git a/syntax/php.vim b/syntax/php.vim index 1f17858..3f916db 100644 --- a/syntax/php.vim +++ b/syntax/php.vim @@ -327,7 +327,7 @@ syn keyword phpFunctions readgzfile gzrewind gzclose gzeof gzgetc gzgets gzgetss syntax keyword phpClasses containedin=ALLBUT,phpComment,phpStringDouble,phpStringSingle,phpIdentifier,phpMethodsVar " Control Structures -syn keyword phpKeyword if echo else elseif while do for foreach function break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare print new clone contained +syn keyword phpKeyword if echo else elseif while do for foreach function break switch case default continue return goto as endif endwhile endfor endforeach endswitch declare endeclare print new clone yield contained " Exception Keywords syn keyword phpKeyword try catch finally throw contained