Skip to content

Commit 6710d46

Browse files
Konfektfmoralesc
authored andcommitted
fix new line whitespace highlighting (#293)
should resolve #292 (comment)
1 parent c692203 commit 6710d46

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
@@ -494,7 +494,7 @@ endif
494494

495495
" New_lines: {{{3
496496
if g:pandoc#syntax#newlines == 1
497-
call s:WithConceal("newline", 'syn match pandocNewLine /\( \{4,4}\@<= \|\S\@<= \|\\\)$/ display containedin=pandocEmphasis,pandocStrong,pandocStrongEmphasis,pandocStrongInEmphasis,pandocEmphasisInStrong', 'conceal cchar='.s:cchars["newline"])
497+
call s:WithConceal("newline", 'syn match pandocNewLine /\%(\%(\S\)\@<= \{2,}\|\\\)$/ display containedin=pandocEmphasis,pandocStrong,pandocStrongEmphasis,pandocStrongInEmphasis,pandocEmphasisInStrong', 'conceal cchar='.s:cchars["newline"])
498498
endif
499499
" }}}3
500500

0 commit comments

Comments
 (0)