X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/de94e028f20cf95a669a65b0d38547918e15fbe0..7046e0dd612f31d02c954b96915dd00866147572:/syntax/mkd.vim 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