diff --git a/languages/ruby/outline.scm b/languages/ruby/outline.scm index 9c1e709..91287a8 100644 --- a/languages/ruby/outline.scm +++ b/languages/ruby/outline.scm @@ -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 . [ @@ -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 . [ @@ -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 . [ @@ -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 . [ @@ -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