From: Hiroshi Shirosaki Date: Fri, 8 Jan 2016 07:06:33 +0000 (+0900) Subject: Enable HTML highlight X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/e1bf04b3ed0c75cef39af9073171f39e2dea2c7c?ds=sidebyside;hp=-c Enable HTML highlight Fix #227 --- e1bf04b3ed0c75cef39af9073171f39e2dea2c7c 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'