Skip to content

Commit 5aa28f5

Browse files
committed
escape dash in the middle of regexp collection ...
otherwise it makes a range, see :help /[]
1 parent 76e333d commit 5aa28f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syntax/pandoc.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ if &encoding == "utf-8"
445445
call s:WithConceal("quotes", 'syn match pandocEndQuote /\(\>[[:punct:]]*\)\@<="[[:blank:][:punct:]\n]\@=/ containedin=pandocEmphasis,pandocStrong,pandocUListItem,pandocListItem,pandocListItemContinuation display', 'conceal cchar=”')
446446
endif
447447
" Hrule: {{{3
448-
syn match pandocHRule /^\s*\([*-_]\)\s*\%(\1\s*\)\{2,}$/ display
448+
syn match pandocHRule /^\s*\([*\-_]\)\s*\%(\1\s*\)\{2,}$/ display
449449
" Backslashes: {{{3
450450
if g:pandoc#syntax#conceal#backslash == 1
451451
syn match pandocBackslash /\\\@<!\\/ containedin=ALLBUT,pandocCodeblock,pandocCodeBlockInsideIndent,pandocNoFormatted,pandocNoFormattedInEmphasis,pandocNoFormattedInStrong,pandocDelimitedCodeBlock,pandocLineBlock,pandocYAMLHeader conceal

0 commit comments

Comments
 (0)