From 199bfeab2aed677af025283e4e2c0b8784cfa5dd Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Wed, 6 Jan 2016 15:14:06 +0900 Subject: [PATCH 1/1] Add highlight `![image](URL)` CommonMark has it. --- syntax/markdown.vim | 4 ++-- test/syntax.vader | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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="\\\@