From e2acae8cef03a929c6f7973e1284052b1a07c36c Mon Sep 17 00:00:00 2001 From: Jaehwang Jerry Jung Date: Sun, 9 Jan 2022 23:37:35 +0900 Subject: [PATCH] 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. --- syntax/markdown.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 3d0a1f3..5258f9f 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -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