From: Ivo Jimenez Date: Wed, 12 Feb 2014 18:42:55 +0000 (-0800) Subject: Support YAML headers X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/603358d099cddfb732ded4ccdb868944025b4cf5?hp=de94e028f20cf95a669a65b0d38547918e15fbe0 Support YAML headers --- diff --git a/syntax/mkd.vim b/syntax/mkd.vim index 19d59d5..01bb945 100644 --- a/syntax/mkd.vim +++ b/syntax/mkd.vim @@ -101,6 +101,10 @@ 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 + "highlighting for Markdown groups HtmlHiLink mkdString String HtmlHiLink mkdCode String