You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/runtime/queries/elixir/context.scm

18 lines
318 B
Scheme

; Credits to nvim-treesitter/nvim-treesitter-context
(binary_operator
left: (_)
right: (_) @context)
(pair
key: (_)
value: (_) @context)
((unary_operator
operand: (call
target: (identifier)
(arguments (_)))) @_op (#lua-match? @_op "@[%w_]+")) @context
(stab_clause) @context
(call) @context