X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/134705dfdb36470918f120645b9f140e2057d7ce..0e43b4c5b06466cb54540b7452db6c6b22e33539:/test/syntax.vader?ds=inline diff --git a/test/syntax.vader b/test/syntax.vader index fdf9c0b..5ce94fc 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -882,6 +882,32 @@ 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' + +Given markdown; +``a\`` b ``c`\`1`` d + +Execute (double code quotes not escaped ending with backslash): + AssertEqual SyntaxOf('a\'), 'mkdCode' + AssertNotEqual SyntaxOf('b'), 'mkdCode' + AssertEqual SyntaxOf('c`\\`1'), 'mkdCode' + AssertNotEqual SyntaxOf('d'), 'mkdCode' + # Math Given markdown;