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
In the snippet you posted, shared/latex is a "regions" highlighter, so everything inside it must be a "region" or "default-region" highlighter.
shared/latex/content is created as a "default-region" highlighter, which is fine. The default region contains a "group" highlighter, and the regex is an anonymous highlighter within that group, so that's fine.
The extra line you add is trying to create an anonymous regex highlighter inside shared/latex/cs, but that highlighter isn't defined anywhere, so Kakoune probably throws an error that prevents the rest of the filetype plugin from running, including the bit that applies the highlighters when you open a LaTeX file.
Version of Kakoune
archlinux 2024.05.18-2
Reproducer
Open a .tex file with this line in it:
Outcome
This gets highlighted as if it were a formula:
Expectations
This should get highlighted instead.
Additional information
It has something to do with the backslash.
If a formula does not start with a backslash, the syntax highlighting works fine.
The text was updated successfully, but these errors were encountered: