X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/f6ffce242a286d5239cf025666fe80af021a7319..bd8236d1651267d2b4b805a1e87afd66f53a2bdb:/test/syntax.vader?ds=sidebyside diff --git a/test/syntax.vader b/test/syntax.vader index fdf9c0b..3baa41f 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -882,6 +882,23 @@ a Execute (not code block in escaped code tag): AssertNotEqual SyntaxOf('a'), 'mkdCode' +# Code quotes + +Given markdown; +`a` + +Execute (code in code quotes): + AssertEqual SyntaxOf('a'), 'mkdCode' + +Given markdown; +`a\` b `c\` d + +Execute (code quotes not escaped ending with backslash): + AssertEqual SyntaxOf('a\'), 'mkdCode' + AssertNotEqual SyntaxOf('b'), 'mkdCode' + AssertEqual SyntaxOf('c\'), 'mkdCode' + AssertNotEqual SyntaxOf('d'), 'mkdCode' + # Math Given markdown;