X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/0688ac78b7caac0d4a3eaa558145a79febeb0a11..5bbe12bb8446f3cb83dfdcc9626c3149b06e571d:/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;