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'
147 Execute (code blocks can be fenced with tildes):
148 AssertEqual SyntaxOf('c'), 'mkdCode'
155 Execute (code blocks can have a language specifier):
156 AssertEqual SyntaxOf('c'), 'mkdCode'
165 Execute (code blocks can be fenced with backticks and a language specifier):
166 AssertEqual SyntaxOf('code'), 'mkdCode'
167 AssertNotEqual SyntaxOf('text'), 'mkdCode'
178 AssertNotEqual SyntaxOf('x'), 'mkdMath'
179 AssertNotEqual SyntaxOf('y'), 'mkdMath'
180 let g:vim_markdown_math=1
182 AssertNotEqual SyntaxOf('a'), 'mkdMath'
183 AssertNotEqual SyntaxOf('b'), 'mkdMath'
184 AssertNotEqual SyntaxOf('c'), 'mkdMath'
185 AssertNotEqual SyntaxOf('d'), 'mkdMath'
186 AssertNotEqual SyntaxOf('e'), 'mkdMath'
187 AssertNotEqual SyntaxOf('f'), 'mkdMath'
188 AssertEqual SyntaxOf('x'), 'mkdMath'
189 AssertEqual SyntaxOf('y'), 'mkdMath'
190 let g:vim_markdown_math=0
192 AssertNotEqual SyntaxOf('x'), 'mkdMath'
193 AssertNotEqual SyntaxOf('y'), 'mkdMath'
204 Execute (multiline math):
205 let g:vim_markdown_math=1
207 AssertNotEqual SyntaxOf('a'), 'mkdMath'
208 AssertEqual SyntaxOf('b'), 'mkdMath'
209 AssertNotEqual SyntaxOf('c'), 'mkdMath'
215 Execute (math tex highlighting):
216 let g:vim_markdown_math=0
218 AssertNotEqual SyntaxOf('sqrt'), 'texStatement'
219 AssertNotEqual SyntaxOf('frac'), 'texStatement'
220 let g:vim_markdown_math=1
222 AssertEqual SyntaxOf('sqrt'), 'texStatement'
223 AssertEqual SyntaxOf('frac'), 'texStatement'
232 Execute (YAML frontmatter is controlled by the option):
233 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
234 let g:vim_markdown_frontmatter=1
236 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
237 let g:vim_markdown_frontmatter=0
239 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
247 Execute (YAML frontmatter only works if it's the first thing in the file):
248 let g:vim_markdown_frontmatter=1
250 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
259 Execute (rules are not mistaken by YAML frontmatter delimiters):
260 let g:vim_markdown_frontmatter=1
262 AssertEqual SyntaxAt(5, 1), 'mkdRule'
273 Execute (header title starts with #):
274 AssertEqual SyntaxOf('a'), 'htmlH1'
275 AssertEqual SyntaxOf('b'), 'htmlH2'