From: Hiroshi Shirosaki Date: Wed, 6 Jan 2016 06:14:06 +0000 (+0900) Subject: Add highlight `![image](URL)` X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/199bfeab2aed677af025283e4e2c0b8784cfa5dd?ds=sidebyside Add highlight `![image](URL)` CommonMark has it. --- diff --git a/syntax/markdown.vim b/syntax/markdown.vim index e7b6e2e..72e59e2 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -42,11 +42,11 @@ syn region htmlBold start="\S\@<=__\|__\S\@=" end="\S\@<=__\|__\S\@=" keepend on syn region htmlBoldItalic start="\S\@<=\*\*\*\|\*\*\*\S\@=" end="\S\@<=\*\*\*\|\*\*\*\S\@=" keepend oneline syn region htmlBoldItalic start="\S\@<=___\|___\S\@=" end="\S\@<=___\|___\S\@=" keepend oneline -" [link](URL) | [link][id] | [link][] +" [link](URL) | [link][id] | [link][] | ![image](URL) syn region mkdFootnotes matchgroup=mkdDelimiter start="\[^" end="\]" syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained oneline syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained oneline -syn region mkdLink matchgroup=mkdDelimiter start="\\\@