Allow fenced languages when embedding in another language

Resolves: https://github.com/tpope/vim-liquid/issues/15
This commit is contained in:
Tim Pope
2022-03-18 15:53:03 -04:00
parent ff1caeadba
commit 6be354e576

View File

@@ -126,7 +126,6 @@ syn region markdownCodeBlock matchgroup=markdownCodeDelimiter start="^\s*\z(\~\{
syn match markdownFootnote "\[^[^\]]\+\]" syn match markdownFootnote "\[^[^\]]\+\]"
syn match markdownFootnoteDefinition "^\[^[^\]]\+\]:" syn match markdownFootnoteDefinition "^\[^[^\]]\+\]:"
if main_syntax ==# 'markdown'
let s:done_include = {} let s:done_include = {}
for s:type in g:markdown_fenced_languages for s:type in g:markdown_fenced_languages
if has_key(s:done_include, matchstr(s:type,'[^.]*')) if has_key(s:done_include, matchstr(s:type,'[^.]*'))
@@ -138,7 +137,6 @@ if main_syntax ==# 'markdown'
endfor endfor
unlet! s:type unlet! s:type
unlet! s:done_include unlet! s:done_include
endif
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]" syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
syn match markdownError "\w\@<=_\w\@=" syn match markdownError "\w\@<=_\w\@="