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('!'), 'mkdDelimiter'
155 AssertEqual SyntaxOf('a'), 'mkdLink'
156 AssertEqual SyntaxOf('b'), 'mkdURL'
157 AssertEqual SyntaxOf('c'), 'mkdURL'
166 Execute (code blocks can be fenced with tildes):
167 AssertEqual SyntaxOf('c'), 'mkdCode'
174 Execute (code blocks can have a language specifier):
175 AssertEqual SyntaxOf('c'), 'mkdCode'
184 Execute (code blocks can be fenced with backticks and a language specifier):
185 AssertEqual SyntaxOf('code'), 'mkdCode'
186 AssertNotEqual SyntaxOf('text'), 'mkdCode'
197 AssertNotEqual SyntaxOf('x'), 'mkdMath'
198 AssertNotEqual SyntaxOf('y'), 'mkdMath'
199 let g:vim_markdown_math=1
201 AssertNotEqual SyntaxOf('a'), 'mkdMath'
202 AssertNotEqual SyntaxOf('b'), 'mkdMath'
203 AssertNotEqual SyntaxOf('c'), 'mkdMath'
204 AssertNotEqual SyntaxOf('d'), 'mkdMath'
205 AssertNotEqual SyntaxOf('e'), 'mkdMath'
206 AssertNotEqual SyntaxOf('f'), 'mkdMath'
207 AssertEqual SyntaxOf('x'), 'mkdMath'
208 AssertEqual SyntaxOf('y'), 'mkdMath'
209 let g:vim_markdown_math=0
211 AssertNotEqual SyntaxOf('x'), 'mkdMath'
212 AssertNotEqual SyntaxOf('y'), 'mkdMath'
223 Execute (multiline math):
224 let g:vim_markdown_math=1
226 AssertNotEqual SyntaxOf('a'), 'mkdMath'
227 AssertEqual SyntaxOf('b'), 'mkdMath'
228 AssertNotEqual SyntaxOf('c'), 'mkdMath'
234 Execute (math tex highlighting):
235 let g:vim_markdown_math=0
237 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
238 AssertNotEqual SyntaxOf('frac'), 'texStatement'
239 let g:vim_markdown_math=1
241 AssertEqual SyntaxOf('sqrt'), 'texStatement'
242 AssertEqual SyntaxOf('frac'), 'texStatement'
251 Execute (YAML frontmatter is controlled by the option):
252 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
253 let g:vim_markdown_frontmatter=1
255 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
256 let g:vim_markdown_frontmatter=0
258 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
266 Execute (YAML frontmatter only works if it's the first thing in the file):
267 let g:vim_markdown_frontmatter=1
269 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
278 Execute (rules are not mistaken by YAML frontmatter delimiters):
279 let g:vim_markdown_frontmatter=1
281 AssertEqual SyntaxAt(5, 1), 'mkdRule'
292 Execute (header title starts with #):
293 AssertEqual SyntaxOf('a'), 'htmlH1'
294 AssertEqual SyntaxOf('b'), 'htmlH2'