helix icon indicating copy to clipboard operation
helix copied to clipboard

Python "and" operator defined as both a keyword and keyword.operator

Open jlhamilton777 opened this issue 1 year ago • 1 comments

Summary

I was trying to set the style of keywords for Python code in my custom theme, and I noticed that and was being styled too, even though the other Boolean operators were not. It turns out to be both a keyword and a keyword.operator.

https://github.com/helix-editor/helix/blob/17dd102e5cccbb2a9a0f0224af63e52f3dab846b/runtime/queries/python/highlights.scm#L206-L222

Reproduction Steps

No response

Helix log

No response

Platform

Linux

Terminal Emulator

alacritty

Installation Method

source

Helix Version

helix 23.10

jlhamilton777 avatar Jan 13 '24 23:01 jlhamilton777

It's weird because this should be the case with in as the in word is used as a operator and also as a keyword in the for in loop.

aspizu avatar Jan 14 '24 06:01 aspizu

I will fix this when I have time.

Aityz avatar Apr 04 '24 12:04 Aityz