HiPhish / rainbow-delimiters.nvim

Rainbow delimiters for Neovim with Tree-sitter
https://gitlab.com/HiPhish/rainbow-delimiters.nvim
Apache License 2.0
490 stars 37 forks source link

[Bug]: Python (affects only the for ... in inside comprehensions) #16

Closed YuCao16 closed 1 year ago

YuCao16 commented 1 year ago

Neovim version

0.10.0

Language affected

python

Query

No response

Strategy

No response

Description

As stated in the title, I know this is not a problem with the plugin. Are there any temporary solutions?
HiPhish commented 1 year ago

Can you please elaborate what exactly the issue is? Where is the problem when you have an expression like this?

[x for x in [y for y in [z for z in zs]]]
YuCao16 commented 1 year ago

Very Shiny: Screenshot from 2023-07-22 19-30-39

HiPhish commented 1 year ago

Look normal to me. What exactly do you want changed? Do you want the for not to be highlighted? Are the colours wrong?

YuCao16 commented 1 year ago

Look normal to me. What exactly do you want changed? Do you want the for not to be highlighted? Are the colours wrong?

Yes, all for and in should be purple.

HiPhish commented 1 year ago

Yeah, I think it was too presumptuous of me to highlight the keywords as well. Update to the latest master, they should now have their normal highlighting.

YuCao16 commented 1 year ago

Perfect, Thanks!

HiPhish commented 1 year ago

Closing this as complete