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'
167 AssertNotEqual SyntaxOf('x'), 'mkdMath'
168 AssertNotEqual SyntaxOf('y'), 'mkdMath'
169 let g:vim_markdown_math=1
171 AssertNotEqual SyntaxOf('a'), 'mkdMath'
172 AssertNotEqual SyntaxOf('b'), 'mkdMath'
173 AssertNotEqual SyntaxOf('c'), 'mkdMath'
174 AssertNotEqual SyntaxOf('d'), 'mkdMath'
175 AssertNotEqual SyntaxOf('e'), 'mkdMath'
176 AssertNotEqual SyntaxOf('f'), 'mkdMath'
177 AssertEqual SyntaxOf('x'), 'mkdMath'
178 AssertEqual SyntaxOf('y'), 'mkdMath'
179 let g:vim_markdown_math=0
181 AssertNotEqual SyntaxOf('x'), 'mkdMath'
182 AssertNotEqual SyntaxOf('y'), 'mkdMath'
193 Execute (multiline math):
194 let g:vim_markdown_math=1
196 AssertNotEqual SyntaxOf('a'), 'mkdMath'
197 AssertEqual SyntaxOf('b'), 'mkdMath'
198 AssertNotEqual SyntaxOf('c'), 'mkdMath'
207 Execute (YAML frontmatter is controlled by the option):
208 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
209 let g:vim_markdown_frontmatter=1
211 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
212 let g:vim_markdown_frontmatter=0
214 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
222 Execute (YAML frontmatter only works if it's the first thing in the file):
223 let g:vim_markdown_frontmatter=1
225 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
234 Execute (rules are not mistaken by YAML frontmatter delimiters):
235 let g:vim_markdown_frontmatter=1
237 AssertEqual SyntaxAt(5, 1), 'mkdRule'