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.
4 Execute (SyntaxOf(pattern)):
5 AssertEqual SyntaxOf('b'), 'htmlBold'
10 Execute (SyntaxOf(pattern)):
11 AssertEqual SyntaxOf('i'), 'htmlItalic'
18 Execute (link with title):
19 AssertEqual SyntaxOf('a'), 'mkdLink'
20 AssertEqual SyntaxOf('b'), 'mkdURL'
25 Execute (parenthesis not in link):
26 AssertNotEqual SyntaxOf('a'), 'mkdLink'
31 Execute (multiple links on a line):
32 AssertEqual SyntaxOf('c'), ''
43 AssertNotEqual SyntaxOf('x'), 'mkdMath'
44 AssertNotEqual SyntaxOf('y'), 'mkdMath'
45 let g:vim_markdown_math=1
47 AssertNotEqual SyntaxOf('a'), 'mkdMath'
48 AssertNotEqual SyntaxOf('b'), 'mkdMath'
49 AssertNotEqual SyntaxOf('c'), 'mkdMath'
50 AssertNotEqual SyntaxOf('d'), 'mkdMath'
51 AssertNotEqual SyntaxOf('e'), 'mkdMath'
52 AssertNotEqual SyntaxOf('f'), 'mkdMath'
53 AssertEqual SyntaxOf('x'), 'mkdMath'
54 AssertEqual SyntaxOf('y'), 'mkdMath'
55 let g:vim_markdown_math=0
57 AssertNotEqual SyntaxOf('x'), 'mkdMath'
58 AssertNotEqual SyntaxOf('y'), 'mkdMath'
69 Execute (multiline math):
70 let g:vim_markdown_math=1
72 AssertNotEqual SyntaxOf('a'), 'mkdMath'
73 AssertEqual SyntaxOf('b'), 'mkdMath'
74 AssertNotEqual SyntaxOf('c'), 'mkdMath'
83 Execute (YAML frontmatter is controlled by the option):
84 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
85 let g:vim_markdown_frontmatter=1
87 AssertEqual SyntaxOf('a'), 'yamlBlockMappingKey'
88 let g:vim_markdown_frontmatter=0
90 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
98 Execute (YAML frontmatter only works if it's the first thing in the file):
99 let g:vim_markdown_frontmatter=1
101 AssertNotEqual SyntaxOf('a'), 'yamlBlockMappingKey'
110 Execute (rules are not mistaken by YAML frontmatter delimiters):
111 let g:vim_markdown_frontmatter=1
113 AssertEqual SyntaxAt(5, 1), 'mkdRule'