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'
29 Execute (parenthesis not in link):
30 AssertNotEqual SyntaxOf('a'), 'mkdLink'
35 Execute (multiple links on a line):
36 AssertEqual SyntaxOf('c'), ''
44 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
45 AssertEqual SyntaxOf('<'), 'mkdDelimiter'
46 AssertEqual SyntaxOf('b'), 'mkdInlineURL'
47 AssertEqual SyntaxOf('>'), 'mkdDelimiter'
48 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
53 Execute (autolink with scheme case is insensitive):
54 AssertEqual SyntaxOf('a'), 'mkdInlineURL'
59 Execute (autolink without known scheme is not a link):
60 AssertNotEqual SyntaxOf('n'), 'mkdInlineURL'
65 Execute (autolink without scheme is not a link):
66 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
74 Execute (autolink with space is not a link):
75 AssertNotEqual SyntaxOf('a'), 'mkdInlineURL'
76 AssertNotEqual SyntaxOf('b'), 'mkdInlineURL'
77 AssertNotEqual SyntaxOf('c'), 'mkdInlineURL'
78 AssertNotEqual SyntaxOf('d'), 'mkdInlineURL'
79 AssertNotEqual SyntaxOf('e'), 'mkdInlineURL'
84 Execute (autolinks can be backslash escaped):
85 AssertNotEqual SyntaxOf('<'), 'mkdDelimiter'
96 AssertNotEqual SyntaxOf('x'), 'mkdMath'
97 AssertNotEqual SyntaxOf('y'), 'mkdMath'
98 let g:vim_markdown_math=1
100 AssertNotEqual SyntaxOf('a'), 'mkdMath'
101 AssertNotEqual SyntaxOf('b'), 'mkdMath'
102 AssertNotEqual SyntaxOf('c'), 'mkdMath'
103 AssertNotEqual SyntaxOf('d'), 'mkdMath'
104 AssertNotEqual SyntaxOf('e'), 'mkdMath'
105 AssertNotEqual SyntaxOf('f'), 'mkdMath'
106 AssertEqual SyntaxOf('x'), 'mkdMath'
107 AssertEqual SyntaxOf('y'), 'mkdMath'
108 let g:vim_markdown_math=0
110 AssertNotEqual SyntaxOf('x'), 'mkdMath'
111 AssertNotEqual SyntaxOf('y'), 'mkdMath'
122 Execute (multiline math):
123 let g:vim_markdown_math=1
125 AssertNotEqual SyntaxOf('a'), 'mkdMath'
126 AssertEqual SyntaxOf('b'), 'mkdMath'
127 AssertNotEqual SyntaxOf('c'), 'mkdMath'
136 Execute (YAML frontmatter is controlled by the option):
137 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
138 let g:vim_markdown_frontmatter=1
140 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
141 let g:vim_markdown_frontmatter=0
143 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
151 Execute (YAML frontmatter only works if it's the first thing in the file):
152 let g:vim_markdown_frontmatter=1
154 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
163 Execute (rules are not mistaken by YAML frontmatter delimiters):
164 let g:vim_markdown_frontmatter=1
166 AssertEqual SyntaxAt(5, 1), 'mkdRule'