From: Josh Holland Date: Sat, 2 Jun 2018 21:33:29 +0000 (+0100) Subject: Support YAML frontmatter that ends with "..." X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/d3dbf4b17b64a1a4b0285d397ea556a3cba3f942?ds=inline;hp=--cc;pf=etc Support YAML frontmatter that ends with "..." --- d3dbf4b17b64a1a4b0285d397ea556a3cba3f942 diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 008a6d8..c8b8faf 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -115,7 +115,7 @@ syn match mkdRule /^\s*_\s\{0,1}_\s\{0,1}_\(_\|\s\)*$/ " YAML frontmatter if get(g:, 'vim_markdown_frontmatter', 0) syn include @yamlTop syntax/yaml.vim - syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^---$" contains=@yamlTop keepend + syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^\(---\|...\)$" contains=@yamlTop keepend unlet! b:current_syntax endif