Skip to content

Commit

Permalink
chore: adjustments after review
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Jul 16, 2023
1 parent 8d82185 commit 6c5932a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions autoload/vimtex/syntax/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -1215,6 +1215,12 @@ function! vimtex#syntax#core#new_env(cfg) abort " {{{1
\ l:next
execute 'syntax match texMathError "\\end{' . l:env_name . '}"'
else
if empty(l:cfg.region)
let l:cfg.region = printf(
\ 'tex%sZone',
\ toupper(l:cfg.name[0]) . l:cfg.name[1:])
endif

let l:options = 'keepend'
if l:cfg.transparent
let l:options .= ' transparent'
Expand Down
2 changes: 1 addition & 1 deletion doc/vimtex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2795,7 +2795,7 @@ OPTIONS *vimtex-options*
open nested syntax regions if the optional group contains the specified
predicate strings. >vim

let g:vimtex_syntax_custom_cmds = [
let g:vimtex_syntax_custom_envs = [
\ {
\ 'name': 'MyMathEnv',
\ 'math': v:true
Expand Down

0 comments on commit 6c5932a

Please sign in to comment.