X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/4f0120ec663e5b4a386563930ffbbea1f22d9029..f8ec8cd60856d80084b82c59b4886ce485e64cf0:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index 6ad8907..8b9b21a 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -155,6 +155,17 @@ code Execute (code blocks can have a language specifier): AssertEqual SyntaxOf('c'), 'mkdCode' +Given markdown; +```c++ +code +``` + +text + +Execute (code blocks can be fenced with backticks and a language specifier): + AssertEqual SyntaxOf('code'), 'mkdCode' + AssertNotEqual SyntaxOf('text'), 'mkdCode' + # Math Given markdown; @@ -199,15 +210,17 @@ Execute (multiline math): 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 - AssertNotEqual SyntaxOf('a'), 'texMatcher' + AssertNotEqual SyntaxOf('sqrt'), 'texStatement' + AssertNotEqual SyntaxOf('frac'), 'texStatement' let g:vim_markdown_math=1 syn off | syn on - AssertEqual SyntaxOf('a'), 'texMatcher' + AssertEqual SyntaxOf('sqrt'), 'texStatement' + AssertEqual SyntaxOf('frac'), 'texStatement' # YAML frontmatter