Skip to content
This repository was archived by the owner on May 27, 2024. It is now read-only.
This repository was archived by the owner on May 27, 2024. It is now read-only.

Mismatched brackets in .tex file editing (LaTeX) #31

@hrcHarry

Description

@hrcHarry

Describe the bug
NVIM v0.8.3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

I use VimTeX to edit .tex files. In most cases, rainbow works well.

However, in some cases, the mismatched brackets occur as follows.

Imgur

  • In the first line, the two pairs of curly brackets do not match correctly.
  • In the second line, the color of the inner pair of brackets is mismatched and one of them has the same color as the outer pair.

Steps to reproduce
For now, I'm not sure if there is any other case causing curly brackets mismatched.
Presently, the following combination of commands may occur such mismatches.
\footnote{... \ref{... (...) ...}}
and
\footnote{... \ref{... }}

Expected behavior

  1. Match the brackets correctly.
  2. Enrich the color of paired brackets like rainbow supporting C language.
    supporting C

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions