elixir-lang / tree-sitter-elixir

Elixir grammar for tree-sitter
https://elixir-lang.org/tree-sitter-elixir
Apache License 2.0
248 stars 25 forks source link

Highlight 'not in' as keyword #11

Closed jonatanklosko closed 3 years ago

jonatanklosko commented 3 years ago

not in is a single token, so "not" and "in" queries don't match it. Fortunately with the alias introduced in #10 we can query "not in" and it matches regardless of the whitespace between not and in.

@connorlay we probably need to adjust the query in nvim-tree-sitter accordingly, unless it's already matched in some other way :)

connorlay commented 3 years ago

@jonatanklosko https://github.com/nvim-treesitter/nvim-treesitter/pull/1933 addresses this for neovim

jonatanklosko commented 3 years ago

@connorlay perfect, thanks!