X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0a534a29f490adcd0612ff10a53b04109385404c..5bbe12bb8446f3cb83dfdcc9626c3149b06e571d:/test/syntax.vader?ds=sidebyside 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;