Skip to content

Syntax highlighting falsely marks brace as error #2408

@danielrainer

Description

@danielrainer

Description

The trailing curly brace in line 3 of minimal.tex is highlighted as an error (texGroupError) despite being valid.

Steps to reproduce

minimal.vim
minimal.tex

Install vimtex and look at the syntax highlighting of the file. The last closing curly brace in the \begin{tabular} line is highlighted as an error, although it is valid. This error does not show up when using the default syntax highlighting without vimtex.

Expected behavior

Valid syntax is not marked as an error.

Actual behavior

The last curly brace in the line \begin{tabular}{*{1}{p{1cm}}} is highlighted as an error (texGroupError).

Do you use a latexmkrc file?

No

VimtexInfo

System info:
  OS: Linux 5.18.1-arch1-1
  Vim version: NVIM v0.5.1
  Has clientserver: true
  Servername: /tmp/nvimOddEaA/0

VimTeX project: repro
  base: repro.tex
  root: /root
  tex: /root/repro.tex
  main parser: current file verified
  document class: minimal
  compiler: latexmk
    engine: -pdf
    options:
      -verbose
      -file-line-error
      -synctex=1
      -interaction=nonstopmode
    callback: 1
    continuous: 1
    executable: latexmk
  viewer: General
  qf method: LaTeX logfile

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions