From 11f34624aa32ac72dc65e46ea9badb4b16a0edd1 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 19 Jul 2016 10:09:54 +0200 Subject: Update --- syntax/blade.vim | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'syntax/blade.vim') diff --git a/syntax/blade.vim b/syntax/blade.vim index 83b36907..42af5145 100644 --- a/syntax/blade.vim +++ b/syntax/blade.vim @@ -22,7 +22,7 @@ syn case match syn clear htmlError if has('patch-7.4.1142') - syn iskeyword @,48-57,_,192-255,@-@ + syn iskeyword @,48-57,_,192-255,@-@,: else setlocal iskeyword+=@-@ endif @@ -31,17 +31,29 @@ syn region bladeEcho matchgroup=bladeDelimiter start="@\@\%(\s*(\)\@!" end="\<@endphp\>" contains=@bladePhp containedin=ALLBUT,@bladeExempt keepend +syn match bladeKeyword "@php\ze\s*(" nextgroup=bladePhpParenBlock skipwhite containedin=ALLBUT,@bladeExempt syn region bladePhpParenBlock matchgroup=bladeDelimiter start="\s*(" end=")" contains=@bladePhp,bladePhpParenBlock skipwhite contained syn cluster bladePhp contains=@phpClTop -syn cluster bladeExempt contains=bladeComment,@htmlTop +syn cluster bladeExempt contains=bladeComment,bladePhpRegion,bladePhpParenBlock,@htmlTop -syn cluster htmlPreproc add=bladeEcho,bladeComment +syn cluster htmlPreproc add=bladeEcho,bladeComment,bladePhpRegion -syn keyword bladeTodo todo fixme xxx contained +syn case ignore +syn keyword bladeTodo todo fixme xxx note contained hi def link bladeDelimiter PreProc hi def link bladeComment Comment -- cgit v1.2.3