X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c4282db6cc2c536cc83c8b803b065c4440aecbc2..04d0260f8e5e59ecce970692488a38e30c01526d:/test/syntax.vader?ds=inline diff --git a/test/syntax.vader b/test/syntax.vader index 0305120..c3dc02d 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -26,8 +26,11 @@ Execute (link with title): Given mkd; (a) +(b) + Execute (parenthesis not in link): - AssertNotEqual SyntaxOf('a'), 'mkdLink' + AssertNotEqual SyntaxOf('a'), 'mkdURL' + AssertNotEqual SyntaxOf('b'), 'mkdURL' Given mkd; [a](b) c [d](e) @@ -84,6 +87,24 @@ Given mkd; Execute (autolinks can be backslash escaped): AssertNotEqual SyntaxOf('<'), 'mkdDelimiter' +# Code Blocks + +Given mkd; +~~~ +code +~~~ + +Execute (code blocks can be fenced with tildes): + AssertEqual SyntaxOf('c'), 'mkdCode' + +Given mkd; +~~~ruby +code +~~~ + +Execute (code blocks can have a language specifier): + AssertEqual SyntaxOf('c'), 'mkdCode' + # Math Given mkd;