Skip to content

Commit d034a6a

Browse files
committed
fix regresion re: issue #107
1 parent 78620ee commit d034a6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

syntax/pandoc.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ syn region pandocCodeBlockInsideIndent start=/\(\(\d\|\a\|*\).*\n\)\@<!\(^\(\s
220220
" Links: {{{1
221221
"
222222
" Base: {{{2
223-
syn region pandocReferenceLabel matchgroup=Operator start=/!\{,1}\[/ skip=/\]\]\@=/ end=/\]/ keepend display
223+
syn region pandocReferenceLabel matchgroup=Operator start=/!\{,1}\[/ skip=/\(\]\]\@=\|`.*].*`\)/ end=/\]/ keepend display
224224
if g:pandoc#syntax#conceal#urls == 1
225225
syn region pandocReferenceURL matchgroup=Operator start=/\]\@1<=(/ end=/)/ keepend display conceal
226226
else
227227
syn region pandocReferenceURL matchgroup=Operator start=/\]\@1<=(/ end=/)/ keepend display
228228
endif
229229
" let's not consider "a [label] a" as a label, remove formatting - Note: breaks implicit links
230-
syn match pandocNoLabel /\]\@1<!\s*\[[^\[\]]\{-}\]\s*[\[(]\@!/ contains=pandocPCite
230+
syn match pandocNoLabel /\]\@1<!\s\+\[[^\[\]]\{-}\]\s\+[\[(]\@!/ contains=pandocPCite
231231
syn match pandocLinkTip /\s*".\{-}"/ contained containedin=pandocReferenceURL contains=@Spell display
232232
call s:WithConceal("image", 'syn match pandocImageIcon /!\[\@=/ display', 'conceal cchar='. s:cchars["image"])
233233
" }}}

0 commit comments

Comments
 (0)