Skip to content

Commit

Permalink
fix(syntax): use contained for texRefConcealedOpt2
Browse files Browse the repository at this point in the history
refer: #2984
  • Loading branch information
lervag committed Aug 11, 2024
1 parent 81e152d commit 9b3e5c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/vimtex/syntax/core.vim
Original file line number Diff line number Diff line change
Expand Up @@ -2303,7 +2303,7 @@ function! s:match_conceal_cites_brackets() abort " {{{1
\ 'contains': '@texClusterOpt,texSpecialChar',
\ 'next': 'texRefConcealedArg',
\})
syntax match texRefConcealedOpt2 "\[\s*\]" conceal
syntax match texRefConcealedOpt2 "\[\s*\]" contained conceal
\ skipwhite nextgroup=texRefConcealedPArg
call vimtex#syntax#core#new_arg('texRefConcealedArg', {
\ 'contains': 'texComment,@NoSpell,texRefConcealedDelim',
Expand All @@ -2325,7 +2325,7 @@ function! s:match_conceal_cites_brackets() abort " {{{1
\ 'contains': '@texClusterOpt,texSpecialChar',
\ 'next': 'texRefConcealedPArg',
\})
syntax match texRefConcealedPOpt2 "\[\s*\]" conceal
syntax match texRefConcealedPOpt2 "\[\s*\]" contained conceal
\ skipwhite nextgroup=texRefConcealedPArg
call vimtex#syntax#core#new_arg('texRefConcealedPArg', {
\ 'contains': 'texComment,@NoSpell,texRefConcealedPDelim',
Expand Down

0 comments on commit 9b3e5c8

Please sign in to comment.