mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-10 10:53:49 -05:00
Run :syn case match before :syn include
Syntax scripts for html and some other languages run :syn case ignore. This may break syntax scripts of other fenced languages that implicitly assume :syn case match.
This commit is contained in:
committed by
Tim Pope
parent
23213f39db
commit
e2acae8cef
@@ -31,6 +31,7 @@ for s:type in map(copy(g:markdown_fenced_languages),'matchstr(v:val,"[^=]*$")')
|
||||
if s:type =~ '\.'
|
||||
let b:{matchstr(s:type,'[^.]*')}_subtype = matchstr(s:type,'\.\zs.*')
|
||||
endif
|
||||
syn case match
|
||||
exe 'syn include @markdownHighlight'.substitute(s:type,'\.','','g').' syntax/'.matchstr(s:type,'[^.]*').'.vim'
|
||||
unlet! b:current_syntax
|
||||
let s:done_include[matchstr(s:type,'[^.]*')] = 1
|
||||
|
||||
Reference in New Issue
Block a user