From: Hiroshi Shirosaki Date: Tue, 19 Jan 2016 13:29:22 +0000 (+0900) Subject: Not allow space in link X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/07f5c794b9885bf53dd5c9c9c6b72a5bb135ec67?ds=sidebyside Not allow space in link No spaces between link text and the following parenthesis. http://spec.commonmark.org/0.24/#example-474 --- 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="\\\@