Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions languages/ruby/outline.scm
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,11 @@
(program
(call
method: (identifier) @_run @name
(#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")
(#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")
arguments: (argument_list
.
[
Expand All @@ -163,7 +167,8 @@
; Nested test methods
(call
method: (identifier) @_ctx
(#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
(#any-of? @_ctx
"describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
arguments: (argument_list
.
[
Expand All @@ -176,7 +181,11 @@
(_
(call
method: (identifier) @_run @name
(#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")
(#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")
arguments: (argument_list
.
[
Expand All @@ -196,7 +205,8 @@
; RSpec one-liners
(call
method: (identifier) @_ctx
(#any-of? @_ctx "describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
(#any-of? @_ctx
"describe" "context" "shared_examples" "fdescribe" "fcontext" "xdescribe" "xcontext")
arguments: (argument_list
.
[
Expand All @@ -209,7 +219,9 @@
(_
(call
method: (identifier) @_run @name
(#any-of? @_run "it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip" "pending")
(#any-of? @_run
"it" "its" "specify" "example" "fit" "fexample" "focus" "xit" "xexample" "xspecify" "skip"
"pending")
block: (block
body: (block_body
(call
Expand Down
Loading