X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2a39beda7de618cd5043f9defbfcd74de0fbc9eb..ab8ecf0bc73a792c60ad7a8a303290ccf89aa4e5:/syntax/markdown.vim?ds=inline 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