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
First of all, thank you for this wonderful package! I just have a small cosmetic bug to file—the closing bracket on \SI commands, when the command has a ^ in it, is highlighted as texGroupError despite being valid syntax.
Steps to reproduce
Minimal vimrc:
callplug#begin('~/.local/share/nvim/plugged')
Plug 'lervag/vimtex'" interestingly enough, the above line does make a difference!callplug#end()
The following .tex file shows the behavior for me:
\documentclass{article}
\usepackage[fleqn]{amsmath}
\usepackage{siunitx}
\begin{document}
\begin{gather*}
c = \SI{299792458}{m.s^{-1}}\end{gather*}
\end{document}
Expected behavior
No response
Actual behavior
See below; the last } on line 9 is highlighted despite being perfectly valid syntax.
One weird thing is that if I remove the Plug 'lervag/vimtex' from my vimrc, the highlighting error shifts to the ^, which is now highlighted with texOnlyMath:
In other words, when I have Plug 'lervag/vimtex' in my vimrc, then: { in SI unit arguments are recognized as texSIArgUnit, but } are recognized as texDelim, causing any future } to be seen as unmatched end brackets and highlighted as syntax errors.
If I do not have Plug 'lervag/vimtex' in my vimrc, then: ^ in SI unit arguments is recognized as texOnlyMath and highlighted as a syntax error.
Description
First of all, thank you for this wonderful package! I just have a small cosmetic bug to file—the closing bracket on \SI commands, when the command has a
^
in it, is highlighted as texGroupError despite being valid syntax.Steps to reproduce
Minimal vimrc:
The following .tex file shows the behavior for me:
Expected behavior
No response
Actual behavior
See below; the last } on line 9 is highlighted despite being perfectly valid syntax.
One weird thing is that if I remove the
Plug 'lervag/vimtex'
from my vimrc, the highlighting error shifts to the^
, which is now highlighted with texOnlyMath:Do you use a latexmkrc file?
No
VimtexInfo
The text was updated successfully, but these errors were encountered: