feat: plugin code, updates

This commit is contained in:
2025-09-07 23:36:04 +03:00
parent 773f82e610
commit 4188c9221f
15 changed files with 354 additions and 11 deletions

View 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