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'
157 Execute (code blocks can be fenced with tildes):
158 AssertEqual SyntaxOf('c'), 'mkdCode'
165 Execute (code blocks can have a language specifier):
166 AssertEqual SyntaxOf('c'), 'mkdCode'
175 Execute (code blocks can be fenced with backticks and a language specifier):
176 AssertEqual SyntaxOf('code'), 'mkdCode'
177 AssertNotEqual SyntaxOf('text'), 'mkdCode'
188 AssertNotEqual SyntaxOf('x'), 'mkdMath'
189 AssertNotEqual SyntaxOf('y'), 'mkdMath'
190 let g:vim_markdown_math=1
192 AssertNotEqual SyntaxOf('a'), 'mkdMath'
193 AssertNotEqual SyntaxOf('b'), 'mkdMath'
194 AssertNotEqual SyntaxOf('c'), 'mkdMath'
195 AssertNotEqual SyntaxOf('d'), 'mkdMath'
196 AssertNotEqual SyntaxOf('e'), 'mkdMath'
197 AssertNotEqual SyntaxOf('f'), 'mkdMath'
198 AssertEqual SyntaxOf('x'), 'mkdMath'
199 AssertEqual SyntaxOf('y'), 'mkdMath'
200 let g:vim_markdown_math=0
202 AssertNotEqual SyntaxOf('x'), 'mkdMath'
203 AssertNotEqual SyntaxOf('y'), 'mkdMath'
214 Execute (multiline math):
215 let g:vim_markdown_math=1
217 AssertNotEqual SyntaxOf('a'), 'mkdMath'
218 AssertEqual SyntaxOf('b'), 'mkdMath'
219 AssertNotEqual SyntaxOf('c'), 'mkdMath'
225 Execute (math tex highlighting):
226 let g:vim_markdown_math=0
228 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
229 AssertNotEqual SyntaxOf('frac'), 'texStatement'
230 let g:vim_markdown_math=1
232 AssertEqual SyntaxOf('sqrt'), 'texStatement'
233 AssertEqual SyntaxOf('frac'), 'texStatement'
242 Execute (YAML frontmatter is controlled by the option):
243 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
244 let g:vim_markdown_frontmatter=1
246 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
247 let g:vim_markdown_frontmatter=0
249 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
257 Execute (YAML frontmatter only works if it's the first thing in the file):
258 let g:vim_markdown_frontmatter=1
260 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
269 Execute (rules are not mistaken by YAML frontmatter delimiters):
270 let g:vim_markdown_frontmatter=1
272 AssertEqual SyntaxAt(5, 1), 'mkdRule'
283 Execute (header title starts with #):
284 AssertEqual SyntaxOf('a'), 'htmlH1'
285 AssertEqual SyntaxOf('b'), 'htmlH2'