Highlight YAML header

This commit is contained in:
Sencer Selcuk
2016-01-24 12:01:20 -05:00
parent 8817c773d7
commit 1a4686fce8

View File

@@ -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