X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/06820bf116da25bf9fc44f7091c3e9bcc5e972b1..a3f273839d1b45fe73b3bc48e1d7a8c6d1422187:/syntax/markdown.vim?ds=inline diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 778e818..05cf751 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -110,6 +110,23 @@ 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) + syn include @jsonTop syntax/json.vim + syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop + unlet! b:current_syntax endif if get(g:, 'vim_markdown_math', 0)