From cab15099529c46740a403b77d11292383bb52d5a Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Sun, 29 Jun 2014 19:42:11 -0700 Subject: [PATCH] Fix embedded VimL highlighting The b:current_syntax variable is set by syntax-include, so it needs to be unset again or the second syntax-include does nothing. --- syntax/snippets.vim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/syntax/snippets.vim b/syntax/snippets.vim index 14325ec..9420ef6 100644 --- a/syntax/snippets.vim +++ b/syntax/snippets.vim @@ -6,7 +6,9 @@ if exists("b:current_syntax") endif syntax include @Python syntax/python.vim +unlet b:current_syntax syntax include @Viml syntax/vim.vim +unlet b:current_syntax " global matches syn match snipComment "^#.*" contains=snipTODO