Add an option to conceal preformatted text blocks

This merges PR #641.
This commit is contained in:
Greg Anders
2019-03-28 14:49:42 -07:00
committed by Henry Qin
parent f5cf991115
commit e56c26c7ba
4 changed files with 27 additions and 3 deletions

View File

@ -1022,10 +1022,11 @@ function! vimwiki#base#nested_syntax(filetype, start, end, textSnipHl) abort
let group='texMathZoneGroup'
endif
let concealpre = vimwiki#vars#get_global('conceal_pre') ? ' concealends' : ''
execute 'syntax region textSnip'.ft.
\ ' matchgroup='.a:textSnipHl.
\ ' start="'.a:start.'" end="'.a:end.'"'.
\ ' contains=@'.group.' keepend'
\ ' contains=@'.group.' keepend'.concealpre
" A workaround to Issue 115: Nested Perl syntax highlighting differs from
" regular one.