From 8817c773d7fe23f7a59f8112db45df0e1d8d2356 Mon Sep 17 00:00:00 2001 From: Sencer Selcuk Date: Sun, 24 Jan 2016 11:52:50 -0500 Subject: [PATCH] YAML front matter as comment --- syntax/markdown.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 6aff90a..55f7dea 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -60,6 +60,8 @@ syn match markdownBlockquote ">\%(\s\|$\)" contained nextgroup=@markdownBlock syn region markdownCodeBlock start=" \|\t" end="$" contained +syntax match YAMLFrontMatter /\%^---\_.\{-}\.\.\.$/ + " TODO: real nesting syn match markdownListMarker "\%(\t\| \{0,4\}\)[-*+]\%(\s\+\S\)\@=" contained syn match markdownOrderedListMarker "\%(\t\| \{0,4}\)\<\d\+\.\%(\s\+\S\)\@=" contained @@ -145,6 +147,7 @@ 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