Closed primeapple closed 2 years ago
Thanks for the detailed report!
\definecolor{delim}{RGB}{20,105,176}
This error should be fixed now (8ac966ece55fc9696eab53e223499c7d687052bc).
{{}{{{\color{delim}{{}}}}{1}
I think there is no good way to keep the math_set
rule and fix this error. Besides, the math_set
rule is not really a syntactic element of LaTeX so I removed it (23463ca6b867e8089d3b680ad720dc8fd26af34e). For example, $ \} $
is not forbidden by LaTeX.
That was quick! Thank you so much, this really did help a lot! Unless you desire to do something else in this, you can close it :)
Hi everyone, I installed your parser in neovim with the treesitter extension.
I'm using this plugin to select my colorschemes: https://github.com/NvChad/base46
So I have this code in my latex document to define a
listing
highlighting for json.Especially have a look at the line
This line breaks the highlighting for the ENTIRE Document. All other lines in the example get interpreted as
curly_group
, while this one gets interpreted asmath_set
. It has several errors and causes every following text to be interpreted as part of thismath_set
. This breaks the entire highlighting. Deleting this line, solves the issue.As a bonus, you can see another error in the video in the line:
But this is not a problem for the rendering
Video:
https://user-images.githubusercontent.com/35628420/168420422-00eb5a12-48d4-4071-b5f6-48b428023724.mp4
I'm wondering, other colorschemes with Treesitter Integration, like https://github.com/Mofiqul/dracula.nvim seem to handle this better and don't completely break. Could you guess a reason for this?
This is the TreeSitter integration of my colorschemes: https://github.com/NvChad/base46/blob/master/lua/integrations/treesitter.lua This is the one of
dracula.nvim
: https://github.com/Mofiqul/dracula.nvim/blob/a219971291c56bcca3827cb7bd40aaaef23feeca/lua/dracula/init.lua#L180