mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-09 18:33:49 -05:00
Allow fenced languages when embedding in another language
Resolves: https://github.com/tpope/vim-liquid/issues/15
This commit is contained in:
@@ -126,7 +126,6 @@ syn region markdownCodeBlock matchgroup=markdownCodeDelimiter start="^\s*\z(\~\{
|
||||
syn match markdownFootnote "\[^[^\]]\+\]"
|
||||
syn match markdownFootnoteDefinition "^\[^[^\]]\+\]:"
|
||||
|
||||
if main_syntax ==# 'markdown'
|
||||
let s:done_include = {}
|
||||
for s:type in g:markdown_fenced_languages
|
||||
if has_key(s:done_include, matchstr(s:type,'[^.]*'))
|
||||
@@ -138,7 +137,6 @@ if main_syntax ==# 'markdown'
|
||||
endfor
|
||||
unlet! s:type
|
||||
unlet! s:done_include
|
||||
endif
|
||||
|
||||
syn match markdownEscape "\\[][\\`*_{}()<>#+.!-]"
|
||||
syn match markdownError "\w\@<=_\w\@="
|
||||
|
||||
Reference in New Issue
Block a user