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.
This commit is contained in:
parent
1ad7d54d75
commit
cab1509952
@ -6,7 +6,9 @@ if exists("b:current_syntax")
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
syntax include @Python syntax/python.vim
|
syntax include @Python syntax/python.vim
|
||||||
|
unlet b:current_syntax
|
||||||
syntax include @Viml syntax/vim.vim
|
syntax include @Viml syntax/vim.vim
|
||||||
|
unlet b:current_syntax
|
||||||
|
|
||||||
" global matches
|
" global matches
|
||||||
syn match snipComment "^#.*" contains=snipTODO
|
syn match snipComment "^#.*" contains=snipTODO
|
||||||
|
Loading…
Reference in New Issue
Block a user