X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/603358d099cddfb732ded4ccdb868944025b4cf5..0c61f835a73119eb80e68d27cf95136c36aa092b:/syntax/mkd.vim?ds=sidebyside diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 01bb945..eb87165 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -101,9 +101,11 @@ endif syn cluster mkdNonListItem contains=htmlItalic,htmlBold,htmlBoldItalic,mkdFootnotes,mkdID,mkdURL,mkdLink,mkdLinkDef,mkdLineBreak,mkdBlockquote,mkdCode,mkdMath,mkdIndentCode,mkdListItem,mkdRule,htmlH1,htmlH2,htmlH3,htmlH4,htmlH5,htmlH6 -" highlight YAML frontmatter -syn include @yamlTop syntax/yaml.vim -syntax match Comment /\%^---\_$\_.\{-}\_^---$/ contains=@yamlTop +" YAML frontmatter +if get(g:, 'vim_markdown_frontmatter', 0) + syn include @yamlTop syntax/yaml.vim + syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^---$" contains=@yamlTop +endif "highlighting for Markdown groups HtmlHiLink mkdString String