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 AssertEqual SyntaxOf('c'), ''
97 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
98 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
99 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
100 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
101 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
106 Execute (autolink with scheme case is insensitive):
107 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
112 Execute (autolink without known scheme is not a link):
113 AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'
118 Execute (autolink without scheme is not a link):
119 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
127 Execute (autolink with space is not a link):
128 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
129 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
130 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
131 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
132 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
137 Execute (autolinks can be backslash escaped):
138 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
143 Execute (autolink in parenthesis):
144 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
145 AssertEqual SyntaxOf('('), 'mkdDelimiter'
146 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
147 AssertEqual SyntaxOf(')'), 'mkdDelimiter'
148 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
151 [![a](http://b)](http://c)
153 Execute (autolink in link text):
154 AssertEqual SyntaxOf('a'), 'mkdLink'
155 AssertEqual SyntaxOf('b'), 'mkdURL'
156 AssertEqual SyntaxOf('c'), 'mkdURL'
165 Execute (code blocks can be fenced with tildes):
166 AssertEqual SyntaxOf('c'), 'mkdCode'
173 Execute (code blocks can have a language specifier):
174 AssertEqual SyntaxOf('c'), 'mkdCode'
183 Execute (code blocks can be fenced with backticks and a language specifier):
184 AssertEqual SyntaxOf('code'), 'mkdCode'
185 AssertNotEqual SyntaxOf('text'), 'mkdCode'
196 AssertNotEqual SyntaxOf('x'), 'mkdMath'
197 AssertNotEqual SyntaxOf('y'), 'mkdMath'
198 let g:vim_markdown_math=1
200 AssertNotEqual SyntaxOf('a'), 'mkdMath'
201 AssertNotEqual SyntaxOf('b'), 'mkdMath'
202 AssertNotEqual SyntaxOf('c'), 'mkdMath'
203 AssertNotEqual SyntaxOf('d'), 'mkdMath'
204 AssertNotEqual SyntaxOf('e'), 'mkdMath'
205 AssertNotEqual SyntaxOf('f'), 'mkdMath'
206 AssertEqual SyntaxOf('x'), 'mkdMath'
207 AssertEqual SyntaxOf('y'), 'mkdMath'
208 let g:vim_markdown_math=0
210 AssertNotEqual SyntaxOf('x'), 'mkdMath'
211 AssertNotEqual SyntaxOf('y'), 'mkdMath'
222 Execute (multiline math):
223 let g:vim_markdown_math=1
225 AssertNotEqual SyntaxOf('a'), 'mkdMath'
226 AssertEqual SyntaxOf('b'), 'mkdMath'
227 AssertNotEqual SyntaxOf('c'), 'mkdMath'
233 Execute (math tex highlighting):
234 let g:vim_markdown_math=0
236 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
237 AssertNotEqual SyntaxOf('frac'), 'texStatement'
238 let g:vim_markdown_math=1
240 AssertEqual SyntaxOf('sqrt'), 'texStatement'
241 AssertEqual SyntaxOf('frac'), 'texStatement'
250 Execute (YAML frontmatter is controlled by the option):
251 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
252 let g:vim_markdown_frontmatter=1
254 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
255 let g:vim_markdown_frontmatter=0
257 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
265 Execute (YAML frontmatter only works if it's the first thing in the file):
266 let g:vim_markdown_frontmatter=1
268 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
277 Execute (rules are not mistaken by YAML frontmatter delimiters):
278 let g:vim_markdown_frontmatter=1
280 AssertEqual SyntaxAt(5, 1), 'mkdRule'
291 Execute (header title starts with #):
292 AssertEqual SyntaxOf('a'), 'htmlH1'
293 AssertEqual SyntaxOf('b'), 'htmlH2'