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'), 'htmlItalic'
14 AssertEqual SyntaxOf('b'), 'htmlItalic'
15 AssertNotEqual SyntaxOf('c'), 'htmlItalic'
22 Execute (link with title):
23 AssertEqual SyntaxOf('a'), 'mkdLink'
24 AssertEqual SyntaxOf('b'), 'mkdURL'
31 Execute (parenthesis not in link):
32 AssertNotEqual SyntaxOf('a'), 'mkdURL'
33 AssertNotEqual SyntaxOf('b'), 'mkdURL'
38 Execute (multiple links on a line):
39 AssertEqual SyntaxOf('c'), ''
47 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
48 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
49 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
50 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
51 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
56 Execute (autolink with scheme case is insensitive):
57 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
62 Execute (autolink without known scheme is not a link):
63 AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'
68 Execute (autolink without scheme is not a link):
69 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
77 Execute (autolink with space is not a link):
78 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
79 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
80 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
81 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
82 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
87 Execute (autolinks can be backslash escaped):
88 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
99 AssertNotEqual SyntaxOf('x'), 'mkdMath'
100 AssertNotEqual SyntaxOf('y'), 'mkdMath'
101 let g:vim_markdown_math=1
103 AssertNotEqual SyntaxOf('a'), 'mkdMath'
104 AssertNotEqual SyntaxOf('b'), 'mkdMath'
105 AssertNotEqual SyntaxOf('c'), 'mkdMath'
106 AssertNotEqual SyntaxOf('d'), 'mkdMath'
107 AssertNotEqual SyntaxOf('e'), 'mkdMath'
108 AssertNotEqual SyntaxOf('f'), 'mkdMath'
109 AssertEqual SyntaxOf('x'), 'mkdMath'
110 AssertEqual SyntaxOf('y'), 'mkdMath'
111 let g:vim_markdown_math=0
113 AssertNotEqual SyntaxOf('x'), 'mkdMath'
114 AssertNotEqual SyntaxOf('y'), 'mkdMath'
125 Execute (multiline math):
126 let g:vim_markdown_math=1
128 AssertNotEqual SyntaxOf('a'), 'mkdMath'
129 AssertEqual SyntaxOf('b'), 'mkdMath'
130 AssertNotEqual SyntaxOf('c'), 'mkdMath'
139 Execute (YAML frontmatter is controlled by the option):
140 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
141 let g:vim_markdown_frontmatter=1
143 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
144 let g:vim_markdown_frontmatter=0
146 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
154 Execute (YAML frontmatter only works if it's the first thing in the file):
155 let g:vim_markdown_frontmatter=1
157 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
166 Execute (rules are not mistaken by YAML frontmatter delimiters):
167 let g:vim_markdown_frontmatter=1
169 AssertEqual SyntaxAt(5, 1), 'mkdRule'