aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/bash/rainbows.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/bash/rainbows.scm')
-rw-r--r--runtime/queries/bash/rainbows.scm21
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/queries/bash/rainbows.scm b/runtime/queries/bash/rainbows.scm
new file mode 100644
index 00000000..fd2a9d3a
--- /dev/null
+++ b/runtime/queries/bash/rainbows.scm
@@ -0,0 +1,21 @@
+[
+ (function_definition)
+ (compound_statement)
+ (subshell)
+ (test_command)
+ (subscript)
+ (parenthesized_expression)
+ (array)
+ (expansion_flags)
+ (expansion)
+ (command_substitution)
+] @rainbow.scope
+
+[
+ "(" ")"
+ "((" "))"
+ "${" "$("
+ "{" "}"
+ "[" "]"
+ "[[" "]]"
+] @rainbow.bracket