X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0a534a29f490adcd0612ff10a53b04109385404c..899ef40d3c84192e3c6c0b512a40d9e42a8bb3dd:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index af80fcd..481b8a1 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -1,6 +1,7 @@ Before: unlet! b:mkd_known_filetypes unlet! b:mkd_included_filetypes + unlet! g:vim_markdown_math Given markdown; a **b** c @@ -620,6 +621,26 @@ Execute (math tex highlighting): AssertEqual SyntaxOf('sqrt'), 'texStatement' AssertEqual SyntaxOf('frac'), 'texStatement' +Given markdown; +$a b[$ c + +Execute (math ends with $): + let g:vim_markdown_math=1 + syn off | syn on + AssertEqual SyntaxOf('a'), 'mkdMath' + AssertEqual SyntaxOf('b'), 'mkdMath' + AssertNotEqual SyntaxOf('c')[0:2], 'tex' + +Given markdown; +$$a b[$$ c + +Execute (math ends with $$): + let g:vim_markdown_math=1 + syn off | syn on + AssertEqual SyntaxOf('a'), 'mkdMath' + AssertEqual SyntaxOf('b'), 'mkdMath' + AssertNotEqual SyntaxOf('c')[0:2], 'tex' + # YAML frontmatter Given markdown;