diff options
author | Michael Davis | 2021-10-15 22:39:05 +0000 |
---|---|---|
committer | Michael Davis | 2021-10-17 15:50:20 +0000 |
commit | 4d8eb09b7c436a82e3deff09cbf65a8c68201522 (patch) | |
tree | 58d8357807d88b5cd90ed81528fe700d06e67dc7 | |
parent | 80b54f2f69165897bfab376d031fab8e040331b6 (diff) |
scope arities in captures as operators
-rw-r--r-- | runtime/queries/elixir/highlights.scm | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/runtime/queries/elixir/highlights.scm b/runtime/queries/elixir/highlights.scm index a882fb63..08e09f37 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 |