\documentclass{article} \begin{document} \texttt{test} (\texttt{test}) ( \texttt{test} ) \texttt{test}) ((blahblah)\\ \texttt{test} \texttt{test} ) (lorem ipsum) \texttt{test} ( \textit{test} \textbf{test}) \end{document}
All instances of \texttt{} get highlighted the same way (green)
9.1.8166
OS: Arch Linux
Kernel: x86_64 Linux 6.12.1-arch1-1
Terminal: konsole 24.08.
Shell: bash 5.2.37
No response
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
To be clear this is not specific to \texttt, it seems to apply to \textbf, etc. that fall under texTypeStyle.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Please try the following patch: https://groups.google.com/g/vim_dev/c/R3-V6KrQsHc/m/lqCPuFSEAgAJ
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Didn't work, sorry.
Additionally, \textbf and \textit are now also broken:
image.png (view on web)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Hello,
I manage to get it working by adding texEmphStyle to texMatchGroup used by texParen for matching text:
screenPatchLatexTextttVim.png (view on web)
Italic and Bold were already added to texMatchGroup, that should explain why the behavior was different. Here is a patch:
Also I notice that texEmphGroup is used around line 430 but not defined, while texBoldGroup and texItalGroup groups are used and defined. Maybe there is another case where the highlighting may fail.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #16228 as completed via 2cb8246.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Thanks, I included your patch and added a syntax group. I couldn't really credit you, since you had no activity in your github profile and no email address.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()