From: memeplex Date: Fri, 3 Mar 2017 23:12:41 +0000 (-0300) Subject: Don't highlight footnote def as link def X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/02d53bbba3becb82a77688ac4f02064f5686aeef?ds=inline;hp=-c Don't highlight footnote def as link def --- 02d53bbba3becb82a77688ac4f02064f5686aeef 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