aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/elixir
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/elixir')
-rw-r--r--runtime/queries/elixir/rainbows.scm24
1 files changed, 24 insertions, 0 deletions
diff --git a/runtime/queries/elixir/rainbows.scm b/runtime/queries/elixir/rainbows.scm
new file mode 100644
index 00000000..01d3da7a
--- /dev/null
+++ b/runtime/queries/elixir/rainbows.scm
@@ -0,0 +1,24 @@
+[
+ (block)
+ (interpolation)
+ (list)
+ (tuple)
+ (bitstring)
+ (map)
+ ; short-hand function captures like &(&1 + &2)
+ (unary_operator
+ operator: "&")
+ (arguments "(" ")")
+ (access_call)
+ (sigil)
+] @rainbow.scope
+
+[
+ "(" ")"
+ "%"
+ "{" "}"
+ "[" "]"
+ "<<" ">>"
+ "#{"
+ "|"
+] @rainbow.bracket