X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/5d98d6b22bd9848748ec9fd7780d056ff63c2ddd..8f0d87271de5f99bac7078ebcd123c66a4e31dbb:/syntax/markdown.vim diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 778e818..186216e 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -110,6 +110,27 @@ syn match mkdRule /^\s*\*\{3,5}$/ if get(g:, 'vim_markdown_frontmatter', 0) syn include @yamlTop syntax/yaml.vim syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^---$" contains=@yamlTop + unlet! b:current_syntax +endif + +if get(g:, 'vim_markdown_toml_frontmatter', 0) + try + syn include @tomlTop syntax/toml.vim + syn region Comment matchgroup=mkdDelimiter start="\%^+++$" end="^+++$" transparent contains=@tomlTop + unlet! b:current_syntax + catch /E484/ + syn region Comment matchgroup=mkdDelimiter start="\%^+++$" end="^+++$" + endtry +endif + +if get(g:, 'vim_markdown_json_frontmatter', 0) + 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)