diff --git a/syntax/snippets.vim b/syntax/snippets.vim index 60f3f85..a41c6ac 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -15,7 +15,7 @@ syn keyword snipTODO FIXME NOTE NOTES TODO XXX contained syn match snipString '"[^"]*"' syn match snipTabsOnly "^\t\+$" -syn match snipKeyword "\(\<\(end\)\?\(snippet\|global\)\>\)\|extends" contained +syn match snipKeyword "\(\<\(end\)\?\(snippet\|global\)\>\)\|extends\|clearsnippets" contained " extends definitions syn match snipExtends "^extends.*" contains=snipKeyword @@ -36,6 +36,9 @@ syn match snipGlobalStart "^global.*" contained contains=snipKeyword,snipString syn match snipGlobalEnd "^endglobal" contained contains=snipKeyword syn region snipGlobal fold keepend start="^global" end="^endglobal" contains=snipGlobalStart,snipGlobalEnd,snipTabsOnly,snipCommand,snipVarExpansion,snipVar,@Python +" snippet clearing +syn match snipClear "^clearsnippets" + " highlighting rules hi link snipComment Comment @@ -58,4 +61,6 @@ hi link snipGlobalStart Statement hi link snipGlobalEnd Statement hi link snipGlobal Normal +hi link snipClear Statement + let b:current_syntax = "snippet"