Skip to content

Commit cfb6042

Browse files
committed
allow concealment of escaping backslashes
ref: issue #122
1 parent ce9a933 commit cfb6042

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

syntax/pandoc.vim

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ endif
7474
if !exists("g:pandoc#syntax#conceal#urls")
7575
let g:pandoc#syntax#conceal#urls = 0
7676
endif
77+
" should backslashes in escapes be concealed? {{{2
78+
if !exists("g:pandoc#syntax#conceal#backslash")
79+
let g:pandoc#syntax#conceal#backslash = 0
80+
endif
7781
"}}}2
7882
" leave specified codeblocks as Normal (i.e. 'unhighlighted') {{{2
7983
if !exists("g:pandoc#syntax#codeblocks#ignore")
@@ -442,6 +446,10 @@ if &encoding == "utf-8"
442446
endif
443447
" Hrule: {{{3
444448
syn match pandocHRule /\*\{3}$/ display
449+
" Backslashes: {{{3
450+
if g:pandoc#syntax#conceal#backslash == 1
451+
syn match pandocBackslash /\\\@<!\\/ containedin=ALLBUT,pandocCodeblock,pandocCodeBlockInsideIndent,pandocNoFormatted,pandocNoFormattedInEmphasis,pandocNoFormattedInStrong,pandocDelimitedCodeBlock,pandocLineBlock conceal
452+
endif
445453
" }}}
446454
" }}}
447455
" YAML: {{{2

0 commit comments

Comments
 (0)