tree-sitter-python icon indicating copy to clipboard operation
tree-sitter-python copied to clipboard

feature: Differentiate keyword operators

Open chbk opened this issue 10 months ago • 0 comments

Did you check the tree-sitter docs?

Is your feature request related to a problem? Please describe.

Could we add a scope to differentiate these operators by default:

and
in
is
not
or

Ideally with a scope that can be used for keyword operators in all languages.

Here is how Atom and Textmate and Neovim do it.

Describe the solution you'd like

[
  "and"
  "in"
  "is"
  "not"
  "or"
  "is not"
  "not in"
] @keyword.operator

Describe alternatives you've considered

[
  "and"
  "in"
  "is"
  "not"
  "or"
  "is not"
  "not in"
] @operator.non-symbolic

Additional context

No response

chbk avatar Feb 15 '25 13:02 chbk