X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2a39beda7de618cd5043f9defbfcd74de0fbc9eb..02d53bbba3becb82a77688ac4f02064f5686aeef:/syntax/markdown.vim diff --git a/syntax/markdown.vim b/syntax/markdown.vim index 13f856d..384c277 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -75,7 +75,7 @@ syn region mkdInlineURL matchgroup=mkdDelimiter start="(\(https\?:\/\/\(\w\+\(: syn region mkdInlineURL matchgroup=mkdDelimiter start="\\\@ ]*>" end=">" " Link definitions: [id]: URL (Optional Title) -syn region mkdLinkDef matchgroup=mkdDelimiter start="^ \{,3}\zs\[" end="]:" oneline nextgroup=mkdLinkDefTarget skipwhite +syn region mkdLinkDef matchgroup=mkdDelimiter start="^ \{,3}\zs\[\^\@!" end="]:" oneline nextgroup=mkdLinkDefTarget skipwhite syn region mkdLinkDefTarget start="<\?\zs\S" excludenl end="\ze[>[:space:]\n]" contained nextgroup=mkdLinkTitle,mkdLinkDef skipwhite skipnl oneline syn region mkdLinkTitle matchgroup=mkdDelimiter start=+"+ end=+"+ contained syn region mkdLinkTitle matchgroup=mkdDelimiter start=+'+ end=+'+ contained