]> 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:

Drop highlight setting of mkdMath
authorHiroshi Shirosaki <h.shirosaki@gmail.com>
Tue, 22 Dec 2015 07:37:21 +0000 (16:37 +0900)
committerHiroshi Shirosaki <h.shirosaki@gmail.com>
Tue, 22 Dec 2015 07:48:52 +0000 (16:48 +0900)
We use highlight setting of tex.vim.

`SyntaxOf()` doesn't return transparent syntax name. Instead we
use `texStatement`.
Fix #234

syntax/markdown.vim
test/syntax.vader

index 9041ab17a3c686e26bf4cac7822d8903f3d3e557..92ff8719822cb5d5a145fea2e42e7bfa6987164e 100644 (file)
@@ -128,7 +128,6 @@ HtmlHiLink mkdID            Identifier
 HtmlHiLink mkdLinkDef       mkdID
 HtmlHiLink mkdLinkDefTarget mkdURL
 HtmlHiLink mkdLinkTitle     htmlString
 HtmlHiLink mkdLinkDef       mkdID
 HtmlHiLink mkdLinkDefTarget mkdURL
 HtmlHiLink mkdLinkTitle     htmlString
-HtmlHiLink mkdMath          Statement
 HtmlHiLink mkdDelimiter     Delimiter
 
 let b:current_syntax = "mkd"
 HtmlHiLink mkdDelimiter     Delimiter
 
 let b:current_syntax = "mkd"
index 6ad8907ae04353ecd8d473a044e6ce50f62b4f4d..0b2c86047625c4fc5232bdbf508c76ba8ecbe26a 100644 (file)
@@ -199,15 +199,17 @@ Execute (multiline math):
 
 Given markdown;
 $ \sqrt{a}{b} $
 
 Given markdown;
 $ \sqrt{a}{b} $
-$$ \sqrt{a}{b} $$
+$$ \frac{a}{b} $$
 
 Execute (math tex highlighting):
   let g:vim_markdown_math=0
   syn off | syn on
 
 Execute (math tex highlighting):
   let g:vim_markdown_math=0
   syn off | syn on
-  AssertNotEqual SyntaxOf('a'), 'texMatcher'
+  AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
+  AssertNotEqual SyntaxOf('frac'), 'texStatement'
   let g:vim_markdown_math=1
   syn off | syn on
   let g:vim_markdown_math=1
   syn off | syn on
-  AssertEqual SyntaxOf('a'), 'texMatcher'
+  AssertEqual SyntaxOf('sqrt'), 'texStatement'
+  AssertEqual SyntaxOf('frac'), 'texStatement'
 
 # YAML frontmatter
 
 
 # YAML frontmatter