X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/25878961d0b526615df6ea7beb0d28cf75528205..899ef40d3c84192e3c6c0b512a40d9e42a8bb3dd:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index 044a7d1..481b8a1 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -1,3 +1,8 @@ +Before: + unlet! b:mkd_known_filetypes + unlet! b:mkd_included_filetypes + unlet! g:vim_markdown_math + Given markdown; a **b** c @@ -616,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;