From: Hiroshi Shirosaki Date: Wed, 16 Mar 2016 00:28:41 +0000 (+0900) Subject: Add keepend as with math syntax X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/5bbe12bb8446f3cb83dfdcc9626c3149b06e571d Add keepend as with math syntax --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 1614d7b..3d8fc6f 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -114,14 +114,14 @@ syn match mkdRule /^\s*\*\{3,5}$/ " YAML frontmatter if get(g:, 'vim_markdown_frontmatter', 0) syn include @yamlTop syntax/yaml.vim - syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^---$" contains=@yamlTop + syn region Comment matchgroup=mkdDelimiter start="\%^---$" end="^---$" contains=@yamlTop keepend unlet! b:current_syntax endif if get(g:, 'vim_markdown_toml_frontmatter', 0) try syn include @tomlTop syntax/toml.vim - syn region Comment matchgroup=mkdDelimiter start="\%^+++$" end="^+++$" transparent contains=@tomlTop + syn region Comment matchgroup=mkdDelimiter start="\%^+++$" end="^+++$" transparent contains=@tomlTop keepend unlet! b:current_syntax catch /E484/ syn region Comment matchgroup=mkdDelimiter start="\%^+++$" end="^+++$" @@ -131,7 +131,7 @@ endif if get(g:, 'vim_markdown_json_frontmatter', 0) try syn include @jsonTop syntax/json.vim - syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop + syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$" contains=@jsonTop keepend unlet! b:current_syntax catch /E484/ syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$"