Skip to content

Commit

Permalink
chore: minor adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Apr 17, 2024
1 parent 1552249 commit eb1484f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions autoload/vimtex/syntax/p/sagetex.vim
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,18 @@ function! vimtex#syntax#p#sagetex#load(cfg) abort " {{{1
\})
call vimtex#syntax#core#new_opt('texSagetexOpt', {'next': 'texSagetexArg'})

for sage_env in ['sageblock', 'sagesilent', 'sageverbatim', 'sageexample', 'sagecommandline']
let config = {
\ 'name': sage_env,
\ 'region': 'texSagetexZone',
\ 'contains': '@vimtex_nested_python'
\}
call vimtex#syntax#core#new_env(config)
for l:env in [
\ 'sageblock',
\ 'sagesilent',
\ 'sageverbatim',
\ 'sageexample',
\ 'sagecommandline'
\]
call vimtex#syntax#core#new_env({
\ 'name': l:env,
\ 'region': 'texSagetexZone',
\ 'contains': '@vimtex_nested_python'
\})
endfor

highlight def link texCmdSagetex texCmd
Expand Down

0 comments on commit eb1484f

Please sign in to comment.