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,38 @@
; Indent content inside BDD blocks
(simple_command
(command_name) @_name
(#match? @_name "^(Describe|Context|ExampleGroup|It|Specify|Example)$")) @indent
; Indent prefixed blocks
(simple_command
(command_name) @_name
(#match? @_name "^[xf](Describe|Context|ExampleGroup|It|Specify|Example)$")) @indent
; Indent hook content
(simple_command
(command_name) @_name
(#match? @_name "^(BeforeEach|AfterEach|BeforeAll|AfterAll|BeforeCall|AfterCall|BeforeRun|AfterRun)$")) @indent
; Indent Data blocks
(simple_command
(command_name) @_name
(#match? @_name "^(Data|Parameters)$")) @indent
; Indent function definitions
(function_definition) @indent
; Indent compound statements
(compound_statement) @indent
; Indent conditional statements
(if_statement) @indent
(for_statement) @indent
(while_statement) @indent
; Indent pipeline continuations
(pipeline) @indent
; Dedent End keyword
(simple_command
(command_name) @_name
(#eq? @_name "End")) @dedent