Skip to content

Commit

Permalink
scope arities in captures as operators
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Oct 15, 2021
1 parent 39f24f7 commit 2c40049
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions runtime/queries/elixir/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,17 @@
(nil) @variable.property
])

; * capture operand
; * capture operator
(unary_operator
operator: "&"
operand: (integer) @operator)
operand: [
(integer) @operator
(binary_operator
left: [
(call target: (dot left: (_) right: (identifier) @function))
(identifier) @function
] operator: "/" right: (integer) @operator)
])

(operator_identifier) @operator

Expand Down

0 comments on commit 2c40049

Please sign in to comment.