Skip to content

Commit

Permalink
Add rainbows.scm queries
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Aug 12, 2022
1 parent dabc439 commit 05bd03c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions runtime/queries/erlang/rainbows.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
(arguments "(" @rainbow ")" @rainbow)
(parenthesized_expression "(" @rainbow ")" @rainbow)
(record "#" @rainbow "{" @rainbow "}" @rainbow)
(map "#" @rainbow "{" @rainbow "}" @rainbow)
(map_update "{" @rainbow "}" @rainbow)
(bitstring "<<" @rainbow ">>" @rainbow)
(list "[" @rainbow "]" @rainbow)
(tuple "{" @rainbow "}" @rainbow)
(function_type "(" @rainbow ")" @rainbow)
4 changes: 4 additions & 0 deletions runtime/queries/toml/rainbows.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(table_array_element "[[" @rainbow "]]" @rainbow)
(table "[" @rainbow "]" @rainbow)
(array "[" @rainbow "]" @rainbow)
(inline_table "{" @rainbow "}" @rainbow)
5 changes: 5 additions & 0 deletions runtime/queries/tsq/rainbows.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(group "(" @rainbow ")" @rainbow)
(named_node "(" @rainbow ")" @rainbow)
(wildcard_node "(" @rainbow ")" @rainbow)
(predicate "(" @rainbow ")" @rainbow)
(alternation "[" @rainbow "]" @rainbow)

0 comments on commit 05bd03c

Please sign in to comment.