All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
5 AssertNotEqual SyntaxOf('a'), 'htmlBold'
6 AssertEqual SyntaxOf('b'), 'htmlBold'
7 AssertNotEqual SyntaxOf('c'), 'htmlBold'
13 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
14 AssertEqual SyntaxOf('b'), 'htmlItalic'
15 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
22 Execute (link with title):
23 AssertEqual SyntaxOf('a'), 'mkdLink'
24 AssertEqual SyntaxOf('b'), 'mkdURL'
31 Execute (parenthesis not in link):
32 AssertNotEqual SyntaxOf('a'), 'mkdURL'
33 AssertNotEqual SyntaxOf('b'), 'mkdURL'
38 Execute (multiple links on a line):
39 AssertEqual SyntaxOf('c'), ''
47 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
48 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
49 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
50 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
51 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
56 Execute (autolink with scheme case is insensitive):
57 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
62 Execute (autolink without known scheme is not a link):
63 AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'
68 Execute (autolink without scheme is not a link):
69 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
77 Execute (autolink with space is not a link):
78 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
79 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
80 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
81 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
82 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
87 Execute (autolinks can be backslash escaped):
88 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
97 Execute (code blocks can be fenced with tildes):
98 AssertEqual SyntaxOf('c'), 'mkdCode'
105 Execute (code blocks can have a language specifier):
106 AssertEqual SyntaxOf('c'), 'mkdCode'
117 AssertNotEqual SyntaxOf('x'), 'mkdMath'
118 AssertNotEqual SyntaxOf('y'), 'mkdMath'
119 let g:vim_markdown_math=1
121 AssertNotEqual SyntaxOf('a'), 'mkdMath'
122 AssertNotEqual SyntaxOf('b'), 'mkdMath'
123 AssertNotEqual SyntaxOf('c'), 'mkdMath'
124 AssertNotEqual SyntaxOf('d'), 'mkdMath'
125 AssertNotEqual SyntaxOf('e'), 'mkdMath'
126 AssertNotEqual SyntaxOf('f'), 'mkdMath'
127 AssertEqual SyntaxOf('x'), 'mkdMath'
128 AssertEqual SyntaxOf('y'), 'mkdMath'
129 let g:vim_markdown_math=0
131 AssertNotEqual SyntaxOf('x'), 'mkdMath'
132 AssertNotEqual SyntaxOf('y'), 'mkdMath'
143 Execute (multiline math):
144 let g:vim_markdown_math=1
146 AssertNotEqual SyntaxOf('a'), 'mkdMath'
147 AssertEqual SyntaxOf('b'), 'mkdMath'
148 AssertNotEqual SyntaxOf('c'), 'mkdMath'
157 Execute (YAML frontmatter is controlled by the option):
158 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
159 let g:vim_markdown_frontmatter=1
161 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
162 let g:vim_markdown_frontmatter=0
164 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
172 Execute (YAML frontmatter only works if it's the first thing in the file):
173 let g:vim_markdown_frontmatter=1
175 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
184 Execute (rules are not mistaken by YAML frontmatter delimiters):
185 let g:vim_markdown_frontmatter=1
187 AssertEqual SyntaxAt(5, 1), 'mkdRule'