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'), 'htmlBold'
14 AssertEqual SyntaxOf('b'), 'htmlBold'
15 AssertNotEqual SyntaxOf('c'), 'htmlBold'
21 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
22 AssertEqual SyntaxOf('b'), 'htmlItalic'
23 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
29 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
30 AssertEqual SyntaxOf('b'), 'htmlItalic'
31 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
36 Execute (not italic with escaped asterisks):
37 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
38 AssertNotEqual SyntaxOf('b'), 'htmlItalic'
39 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
44 Execute (not italic with escaped underscores):
45 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
46 AssertNotEqual SyntaxOf('b'), 'htmlItalic'
47 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
52 Execute (italic with escaped underscores):
53 AssertNotEqual SyntaxOf('a'), 'htmlItalic'
54 AssertEqual SyntaxOf('b'), 'htmlItalic'
55 AssertEqual SyntaxOf('c'), 'htmlItalic'
56 AssertNotEqual SyntaxOf('d'), 'htmlItalic'
61 Execute (bold with escaped underscores):
62 AssertNotEqual SyntaxOf('a'), 'htmlBold'
63 AssertEqual SyntaxOf('b'), 'htmlBold'
64 AssertEqual SyntaxOf('c'), 'htmlBold'
65 AssertNotEqual SyntaxOf('d'), 'htmlBold'
72 Execute (link with title):
73 AssertEqual SyntaxOf('a'), 'mkdLink'
74 AssertEqual SyntaxOf('b'), 'mkdURL'
81 Execute (parenthesis not in link):
82 AssertNotEqual SyntaxOf('a'), 'mkdURL'
83 AssertNotEqual SyntaxOf('b'), 'mkdURL'
88 Execute (multiple links on a line):
89 AssertNotEqual SyntaxOf('c'), 'mkdLink'
90 AssertNotEqual SyntaxOf('c'), 'mkdURL'
98 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
99 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
100 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
101 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
102 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
107 Execute (autolink with scheme case is insensitive):
108 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
113 Execute (autolink without known scheme is not a link):
114 AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'
119 Execute (autolink without scheme is not a link):
120 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
128 Execute (autolink with space is not a link):
129 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
130 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
131 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
132 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
133 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
138 Execute (autolinks can be backslash escaped):
139 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
144 Execute (autolink in parenthesis):
145 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
146 AssertEqual SyntaxOf('('), 'mkdDelimiter'
147 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
148 AssertEqual SyntaxOf(')'), 'mkdDelimiter'
149 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
152 [![a](http://b)](http://c)
154 Execute (autolink in link text):
155 AssertEqual SyntaxOf('!'), 'mkdDelimiter'
156 AssertEqual SyntaxOf('a'), 'mkdLink'
157 AssertEqual SyntaxOf('b'), 'mkdURL'
158 AssertEqual SyntaxOf('c'), 'mkdURL'
167 Execute (code blocks can be fenced with tildes):
168 AssertEqual SyntaxOf('c'), 'mkdCode'
175 Execute (code blocks can have a language specifier):
176 AssertEqual SyntaxOf('c'), 'mkdCode'
185 Execute (code blocks can be fenced with backticks and a language specifier):
186 AssertEqual SyntaxOf('code'), 'mkdCode'
187 AssertNotEqual SyntaxOf('text'), 'mkdCode'
197 Execute (indent code blocks):
198 AssertNotEqual SyntaxOf('a'), 'mkdCode'
199 AssertEqual SyntaxOf('b'), 'mkdCode'
200 AssertEqual SyntaxOf('c'), 'mkdCode'
209 Execute (indent code blocks after header):
210 AssertNotEqual SyntaxOf('a'), 'mkdCode'
211 AssertNotEqual SyntaxOf('b'), 'mkdCode'
212 AssertEqual SyntaxOf('c'), 'mkdCode'
221 Execute (indent code blocks after list):
222 AssertNotEqual SyntaxOf('a'), 'mkdCode'
223 AssertNotEqual SyntaxOf('b'), 'mkdCode'
224 AssertEqual SyntaxOf('c'), 'mkdCode'
235 AssertNotEqual SyntaxOf('x'), 'mkdMath'
236 AssertNotEqual SyntaxOf('y'), 'mkdMath'
237 let g:vim_markdown_math=1
239 AssertNotEqual SyntaxOf('a'), 'mkdMath'
240 AssertNotEqual SyntaxOf('b'), 'mkdMath'
241 AssertNotEqual SyntaxOf('c'), 'mkdMath'
242 AssertNotEqual SyntaxOf('d'), 'mkdMath'
243 AssertNotEqual SyntaxOf('e'), 'mkdMath'
244 AssertNotEqual SyntaxOf('f'), 'mkdMath'
245 AssertEqual SyntaxOf('x'), 'mkdMath'
246 AssertEqual SyntaxOf('y'), 'mkdMath'
247 let g:vim_markdown_math=0
249 AssertNotEqual SyntaxOf('x'), 'mkdMath'
250 AssertNotEqual SyntaxOf('y'), 'mkdMath'
261 Execute (multiline math):
262 let g:vim_markdown_math=1
264 AssertNotEqual SyntaxOf('a'), 'mkdMath'
265 AssertEqual SyntaxOf('b'), 'mkdMath'
266 AssertNotEqual SyntaxOf('c'), 'mkdMath'
272 Execute (math tex highlighting):
273 let g:vim_markdown_math=0
275 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
276 AssertNotEqual SyntaxOf('frac'), 'texStatement'
277 let g:vim_markdown_math=1
279 AssertEqual SyntaxOf('sqrt'), 'texStatement'
280 AssertEqual SyntaxOf('frac'), 'texStatement'
289 Execute (YAML frontmatter is controlled by the option):
290 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
291 let g:vim_markdown_frontmatter=1
293 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
294 let g:vim_markdown_frontmatter=0
296 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
304 Execute (YAML frontmatter only works if it's the first thing in the file):
305 let g:vim_markdown_frontmatter=1
307 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
316 Execute (rules are not mistaken by YAML frontmatter delimiters):
317 let g:vim_markdown_frontmatter=1
319 AssertEqual SyntaxAt(5, 1), 'mkdRule'
330 Execute (header title starts with #):
331 AssertEqual SyntaxOf('a'), 'htmlH1'
332 AssertEqual SyntaxOf('b'), 'htmlH2'
340 Execute (& and > are not marked as htmlError in lists):
341 AssertEqual SyntaxOf('-'), 'mkdListItem'
342 AssertEqual SyntaxOf('1.'), 'mkdListItem'
343 AssertNotEqual SyntaxOf('&'), 'htmlError'
344 AssertNotEqual SyntaxOf('>'), 'htmlError'
355 Execute (HTML tag in text):
356 AssertEqual SyntaxOf('p'), 'htmlTagName'
357 AssertEqual SyntaxOf('<p>'), 'htmlTag'
358 AssertEqual SyntaxOf('</p>'), 'htmlEndTag'
359 AssertEqual SyntaxOf('span'), 'htmlTagName'
360 AssertEqual SyntaxOf('<span>'), 'htmlTag'
361 AssertEqual SyntaxOf('</span>'), 'htmlEndTag'