on master help sign in
scope arities in captures as operators
4d8eb09Michael Davis
runtime/queries/elixir/highlights.scm+9−2
@@ -48,10 +48,17 @@
48 (nil) @variable.property
48 (nil) @variable.property
49 ])
49 ])
50
50
51−; * capture operand
51+; * capture operator
52(unary_operator
52(unary_operator
53 operator: "&"
53 operator: "&"
54+ operand: [
55+ (integer) @operator
56+ (binary_operator
57+ left: [
58+ (call target: (dot left: (_) right: (identifier) @function))
59+ (identifier) @function
54− operand: (integer) @operator)
60+ ] operator: "/" right: (integer) @operator)
61+ ])
55
62
56(operator_identifier) @operator
63(operator_identifier) @operator
57
64