1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
" VimTeX - LaTeX plugin for Vim
"
" Maintainer: Karl Yngve LervÄg
" Email: karl.yngve@gmail.com
"
function! vimtex#syntax#p#amsthm#load(cfg) abort " {{{1
syntax match texCmdNewthm "\\newtheorem\*"
\ nextgroup=texNewthmArgName skipwhite skipnl
syntax match texProofEnvBgn "\\begin{proof}"
\ nextgroup=texProofEnvOpt skipwhite skipnl
\ contains=texCmdEnv
call vimtex#syntax#core#new_opt('texProofEnvOpt', {
\ 'contains': 'TOP,@NoSpell'
\})
syntax match texCmdThmStyle "\\theoremstyle\>"
\ nextgroup=texThmStyleArg skipwhite skipnl
call vimtex#syntax#core#new_arg('texThmStyleArg', {
\ 'contains': 'TOP,@Spell'
\})
highlight def link texCmdThmStyle texCmd
highlight def link texProofEnvOpt texEnvOpt
highlight def link texThmStyleArg texArg
endfunction
" }}}1
|