Use italic font for emph when tex_conceal=''
This commit is contained in:
parent
8c48409a7e
commit
4cbb663876
@ -11,13 +11,17 @@ elseif b:current_syntax !=# 'tex'
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" {{{1 Add conceal for \emph
|
" {{{1 Add italic font and conceal for \emph
|
||||||
if has('conceal') && get(g:, 'tex_conceal', 'b') =~# 'b'
|
if has('conceal') && get(g:, 'tex_conceal', 'b') =~# 'b'
|
||||||
syntax region texItalStyle
|
syntax region texItalStyle
|
||||||
\ matchgroup=texTypeStyle start="\\emph\s*{" end="}"
|
\ matchgroup=texTypeStyle start="\\emph\s*{" end="}"
|
||||||
\ concealends contains=@texItalGroup
|
\ contains=@texItalGroup concealends
|
||||||
syntax cluster texMatchGroup add=texItalStyle
|
else
|
||||||
|
syntax region texItalStyle
|
||||||
|
\ matchgroup=texTypeStyle start="\\emph\s*{" end="}"
|
||||||
|
\ contains=@texItalGroup
|
||||||
endif
|
endif
|
||||||
|
syntax cluster texMatchGroup add=texItalStyle
|
||||||
|
|
||||||
" }}}1
|
" }}}1
|
||||||
" {{{1 Add syntax highlighting for \url and \href
|
" {{{1 Add syntax highlighting for \url and \href
|
||||||
|
Loading…
x
Reference in New Issue
Block a user