From 2c4004922fa2a73938a823cf98767d6530203944 Mon Sep 17 00:00:00 2001
From: Michael Davis <mcarsondavis@gmail.com>
Date: Fri, 15 Oct 2021 17:39:05 -0500
Subject: [PATCH] scope arities in captures as operators

---
 runtime/queries/elixir/highlights.scm | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/runtime/queries/elixir/highlights.scm b/runtime/queries/elixir/highlights.scm
index a882fb63bc6ab..08e09f37a8a4f 100644
--- a/runtime/queries/elixir/highlights.scm
+++ b/runtime/queries/elixir/highlights.scm
@@ -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