Skip to content

Commit 484f878

Browse files
Konfektfmoralesc
authored andcommitted
highlight new lines more cautiously (#292)
do not highlight indentation and only after non-white space characters
1 parent 14c778e commit 484f878

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 /\( \|\\\)$/ display containedin=pandocEmphasis,pandocStrong,pandocStrongEmphasis,pandocStrongInEmphasis,pandocEmphasisInStrong', 'conceal cchar='.s:cchars["newline"])
497+
call s:WithConceal("newline", 'syn match pandocNewLine /\( \{4,4}\@<= \|\S\@<= \|\\\)$/ display containedin=pandocEmphasis,pandocStrong,pandocStrongEmphasis,pandocStrongInEmphasis,pandocEmphasisInStrong', 'conceal cchar='.s:cchars["newline"])
498498
endif
499499
" }}}3
500500

0 commit comments

Comments
 (0)