From: Hiroshi Shirosaki Date: Wed, 24 Oct 2018 04:43:05 +0000 (+0900) Subject: Merge pull request #392 from anowlcalledjosh/yaml-frontmatter-fix X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/52ee2eb68a706972a1840ca036035033046568d6?hp=f19506b1bfe5e60c39581dd53f6913a09385f5dd Merge pull request #392 from anowlcalledjosh/yaml-frontmatter-fix Fix detection of YAML frontmatter ending with "..." --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 0bffaa2..5056af4 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