Skip to content

Commit c76442c

Browse files
anntzerfmoralesc
authored andcommitted
Never conceal \ in \newcommand... (#197)
... even if pandoc#syntax#conceal#backslash is set. Test with the following file: \*foo \renewcommand \foo Fixes #167.
1 parent ec56a3b commit c76442c

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
@@ -470,7 +470,7 @@ endif
470470
syn match pandocHRule /^\s*\([*\-_]\)\s*\%(\1\s*\)\{2,}$/ display
471471
" Backslashes: {{{3
472472
if g:pandoc#syntax#conceal#backslash == 1
473-
syn match pandocBackslash /\\\@<!\\/ containedin=ALLBUT,pandocCodeblock,pandocCodeBlockInsideIndent,pandocNoFormatted,pandocNoFormattedInEmphasis,pandocNoFormattedInStrong,pandocDelimitedCodeBlock,pandocLineBlock,pandocYAMLHeader conceal
473+
syn match pandocBackslash /\v\\@<!\\((re)?newcommand)@!/ containedin=ALLBUT,pandocCodeblock,pandocCodeBlockInsideIndent,pandocNoFormatted,pandocNoFormattedInEmphasis,pandocNoFormattedInStrong,pandocDelimitedCodeBlock,pandocLineBlock,pandocYAMLHeader conceal
474474
endif
475475
" }}}
476476
" }}}

0 commit comments

Comments
 (0)