From 1a4686fce83345f85b4eee02f881c3c81071adcf Mon Sep 17 00:00:00 2001 From: Sencer Selcuk Date: Sun, 24 Jan 2016 12:01:20 -0500 Subject: [PATCH] Highlight YAML header --- syntax/markdown.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 55f7dea..95cc5d2 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -60,7 +60,9 @@ syn match markdownBlockquote ">\%(\s\|$\)" contained nextgroup=@markdownBlock syn region markdownCodeBlock start=" \|\t" end="$" contained -syntax match YAMLFrontMatter /\%^---\_.\{-}\.\.\.$/ +syn include @yamlTop syntax/yaml.vim +syntax match YAMLFrontMatter /\%^---\_.\{-}\.\.\.$/ contains=@yamlTop +unlet! b:current_syntax " TODO: real nesting syn match markdownListMarker "\%(\t\| \{0,4\}\)[-*+]\%(\s\+\S\)\@=" contained @@ -147,7 +149,6 @@ hi def link markdownBoldDelimiter markdownBold hi def link markdownBoldItalic htmlBoldItalic hi def link markdownBoldItalicDelimiter markdownBoldItalic hi def link markdownCodeDelimiter Delimiter -hi def link YAMLFrontMatter Comment hi def link markdownEscape Special hi def link markdownError Error