Skip to content

feature: Differentiate keyword operators #297

Open
@chbk

Description

@chbk

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions