on master help sign in
scope arities in captures as operators
commit4d8eb09b7c436a82e3deff09cbf65a8c68201522 authorMichael Davis <mcarsondavis@gmail.com> dateFri 15 Oct 2021, 17:39 (5 years ago) parent80b54f2
1 file changed+9−2
runtime/queries/elixir/highlights.scm+9−2
runtime/queries/elixir/highlights.scm+9−2
@@ -48,10 +48,17 @@
4848 (nil) @variable.property
4949 ])
5050
51−; * capture operand
51+; * capture operator
5252(unary_operator
5353 operator: "&"
54− operand: (integer) @operator)
54+ operand: [
55+ (integer) @operator
56+ (binary_operator
57+ left: [
58+ (call target: (dot left: (_) right: (identifier) @function))
59+ (identifier) @function
60+ ] operator: "/" right: (integer) @operator)
61+ ])
5562
5663(operator_identifier) @operator
5764