mirror of
https://github.com/ivuorinen/shellspec-zed.git
synced 2026-02-14 21:51:58 +00:00
feat: plugin code, updates
This commit is contained in:
33
languages/shellspec/outline.scm
Normal file
33
languages/shellspec/outline.scm
Normal file
@@ -0,0 +1,33 @@
|
||||
; Test suites
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(Describe|Context|ExampleGroup)$")
|
||||
(word) @name) @item
|
||||
|
||||
; Individual tests
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(It|Specify|Example)$")
|
||||
(word) @name) @item
|
||||
|
||||
; Focused tests
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^f(Describe|Context|It|Specify|Example)$")
|
||||
(word) @name) @item
|
||||
|
||||
; Skipped tests
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^x(Describe|Context|It|Specify|Example)$")
|
||||
(word) @name) @item
|
||||
|
||||
; Hooks
|
||||
(simple_command
|
||||
(command_name) @_name
|
||||
(#match? @_name "^(BeforeEach|AfterEach|BeforeAll|AfterAll)$")
|
||||
(word) @name) @item
|
||||
|
||||
; Function definitions
|
||||
(function_definition
|
||||
name: (word) @name) @item
|
||||
Reference in New Issue
Block a user