X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/002a169bdbb4831885e027b37679f25b117b7fe8..8f0d87271de5f99bac7078ebcd123c66a4e31dbb:/syntax/markdown.vim?ds=sidebyside diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 05cf751..186216e 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -124,9 +124,13 @@ if get(g:, 'vim_markdown_toml_frontmatter', 0) endif if get(g:, 'vim_markdown_json_frontmatter', 0) - syn include @jsonTop syntax/json.vim - syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop - unlet! b:current_syntax + try + syn include @jsonTop syntax/json.vim + syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop + unlet! b:current_syntax + catch /E484/ + syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" + endtry endif if get(g:, 'vim_markdown_math', 0)