]> git.madduck.net Git - etc/vim.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add keepend as with math syntax
authorHiroshi Shirosaki <h.shirosaki@gmail.com>
Wed, 16 Mar 2016 00:28:41 +0000 (09:28 +0900)
committerHiroshi Shirosaki <h.shirosaki@gmail.com>
Wed, 16 Mar 2016 00:28:41 +0000 (09:28 +0900)
syntax/markdown.vim

index 1614d7bd1ac21be991b9796e93f165a385894d61..3d8fc6fae30437401523cc3fbdbcb4cd1fbee43d 100644 (file)
@@ -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
 " 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
   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="^+++$"
     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
 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="^}$"
     unlet! b:current_syntax
   catch /E484/
     syn region Comment matchgroup=mkdDelimiter start="\%^{$" end="^}$"