Skip to content

Commit 9d9f74c

Browse files
committed
fix(syntax): ignore texError in E3Zones
1 parent 7d16d56 commit 9d9f74c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

autoload/vimtex/syntax/core.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,11 @@ function! vimtex#syntax#core#init_rules() abort " {{{1
526526
\ start="\%#=1\\\%(ExplSyntaxOn\|ProvidesExpl\%(Package\|Class\|File\)\)"
527527
\ end="\%#=1\\ExplSyntaxOff\|\%$"
528528
\ transparent
529-
\ contains=TOP,@NoSpell
529+
\ contains=TOP,@NoSpell,TexError
530530

531531
call vimtex#syntax#core#new_arg('texE3Group', {
532532
\ 'opts': 'contained containedin=@texClusterE3',
533+
\ 'contains': 'TOP,@NoSpell,TexError',
533534
\})
534535

535536
syntax match texE3Cmd "\\\w\+"

0 commit comments

Comments
 (0)