X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/de94e028f20cf95a669a65b0d38547918e15fbe0..6541268076c6e7d59737e48558e76dd2b4d9aa12:/syntax/mkd.vim?ds=inline diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 19d59d5..eb87165 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -101,6 +101,12 @@ 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 +" 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 HtmlHiLink mkdCode String