mirror of
https://github.com/tpope/vim-markdown.git
synced 2025-11-09 10:23:48 -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 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\@="
|
||||||
|
|||||||
Reference in New Issue
Block a user