From e1bf04b3ed0c75cef39af9073171f39e2dea2c7c Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Fri, 8 Jan 2016 16:06:33 +0900 Subject: [PATCH] Enable HTML highlight Fix #227 --- syntax/markdown.vim | 2 +- test/syntax.vader | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 0e147a3..5d59833 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -112,7 +112,7 @@ if get(g:, 'vim_markdown_math', 0) syn region mkdMath matchgroup=mkdDelimiter start="\\\@ are not marked as htmlError in lists): AssertEqual SyntaxOf('1.'), 'mkdListItem' AssertNotEqual SyntaxOf('&'), 'htmlError' AssertNotEqual SyntaxOf('>'), 'htmlError' + +# HTML + +Given markdown; +a + +

b

+ +- c + +Execute (HTML tag in text): + AssertEqual SyntaxOf('p'), 'htmlTagName' + AssertEqual SyntaxOf('

'), 'htmlTag' + AssertEqual SyntaxOf('

'), 'htmlEndTag' + AssertEqual SyntaxOf('span'), 'htmlTagName' + AssertEqual SyntaxOf(''), 'htmlTag' + AssertEqual SyntaxOf(''), 'htmlEndTag' -- 2.39.5