Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Differentiate keyword operators #297

Open
1 task done
chbk opened this issue Feb 15, 2025 · 0 comments
Open
1 task done

feature: Differentiate keyword operators #297

chbk opened this issue Feb 15, 2025 · 0 comments

Comments

@chbk
Copy link

chbk commented Feb 15, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant