Skip to content

Commit 73d5e9d

Browse files
authored
chore(ruby): Format queries (#260)
Format Ruby language queries with `ts_query_ls`.
1 parent 6960ff5 commit 73d5e9d

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

languages/ruby/outline.scm

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,11 @@
143143
(program
144144
(call
145145
method: (identifier) @_run @name
146-
(#any-of? @_run "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" "include_context" "include_examples")
146+
(#any-of? @_run
147+
"describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario"
148+
"shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit"
149+
"xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like"
150+
"include_context" "include_examples")
147151
arguments: (argument_list
148152
.
149153
[
@@ -163,7 +167,8 @@
163167
; Nested test methods
164168
(call
165169
method: (identifier) @_ctx
166-
(#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
170+
(#any-of? @_ctx
171+
"describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
167172
arguments: (argument_list
168173
.
169174
[
@@ -176,7 +181,11 @@
176181
(_
177182
(call
178183
method: (identifier) @_run @name
179-
(#any-of? @_run "describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario" "shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext" "xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like" "include_context" "include_examples")
184+
(#any-of? @_run
185+
"describe" "context" "test" "it" "its" "specify" "example" "feature" "scenario"
186+
"shared_examples" "fdescribe" "fcontext" "fit" "fexample" "focus" "xdescribe" "xcontext"
187+
"xit" "xexample" "xspecify" "skip" "pending" "it_behaves_like" "it_should_behave_like"
188+
"include_context" "include_examples")
180189
arguments: (argument_list
181190
.
182191
[
@@ -196,7 +205,8 @@
196205
; RSpec one-liners
197206
(call
198207
method: (identifier) @_ctx
199-
(#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
208+
(#any-of? @_ctx
209+
"describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
200210
arguments: (argument_list
201211
.
202212
[
@@ -209,7 +219,9 @@
209219
(_
210220
(call
211221
method: (identifier) @_run @name
212-
(#any-of? @_run "it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip" "pending")
222+
(#any-of? @_run
223+
"it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip"
224+
"pending")
213225
block: (block
214226
body: (block_body
215227
(call

0 commit comments

Comments
 (0)