From 07f5c794b9885bf53dd5c9c9c6b72a5bb135ec67 Mon Sep 17 00:00:00 2001 From: Hiroshi Shirosaki Date: Tue, 19 Jan 2016 22:29:22 +0900 Subject: [PATCH] Not allow space in link No spaces between link text and the following parenthesis. http://spec.commonmark.org/0.24/#example-474 --- syntax/markdown.vim | 2 +- test/syntax.vader | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 46eb5a9..92c6c56 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -53,7 +53,7 @@ syn region htmlBoldItalic start="___\ze\S" end="\S\zs___" keepend oneline syn region mkdFootnotes matchgroup=mkdDelimiter start="\[^" end="\]" execute 'syn region mkdID matchgroup=mkdDelimiter start="\[" end="\]" contained oneline' . s:conceal execute 'syn region mkdURL matchgroup=mkdDelimiter start="(" end=")" contained oneline' . s:conceal -execute 'syn region mkdLink matchgroup=mkdDelimiter start="\\\@