Skip to content

Commit

Permalink
Support YAML frontmatter that ends with "..."
Browse files Browse the repository at this point in the history
  • Loading branch information
sersorrel committed Jun 5, 2018
1 parent 6d2cb3c commit d3dbf4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/markdown.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit d3dbf4b

Please sign in to comment.