You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 27, 2024. It is now read-only.
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.
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
Match the brackets correctly.
Enrich the color of paired brackets like rainbow supporting C language.
The text was updated successfully, but these errors were encountered:
Patterns for the nodes curly_group_text and curly_group_text_list were missing
There appears to be a bug in the LaTeX parser
Even when everything works correctly sometimes Neovim still matches parentheses wrongly
I have just added the missing queries, so that part should work now.
The last point is simply a consequence of Tree-sitter support still being work in progress, some jank is to be expected. Usually I can deleted (dd) the offending line and put (p) it immediately back in and everything will be fine. This happens across languages.
As for the second point, take a look at this screenshot:
According to Tree-sitter the reference extends only up to (excluding) the opening parenthesis. If you remove the parenthesized text inside the curly braces the highlighting will work properly. The plugin is doing exactly what it is supposed to do, the problem needs to be fixed either within the parser or Neovim. I don't know which of the two is causing the error.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
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
The text was updated successfully, but these errors were encountered: