mirror of
https://github.com/ivuorinen/shellspec-zed.git
synced 2026-01-26 03:04:11 +00:00
26 lines
480 B
Scheme
26 lines
480 B
Scheme
; Quote pairs
|
|
("'" @open "'" @close)
|
|
("\"" @open "\"" @close)
|
|
|
|
; Command substitution
|
|
("$(" @open ")" @close)
|
|
("${" @open "}" @close)
|
|
|
|
; Parentheses
|
|
("(" @open ")" @close)
|
|
|
|
; Square brackets
|
|
("[" @open "]" @close)
|
|
|
|
; Curly braces
|
|
("{" @open "}" @close)
|
|
|
|
; ShellSpec block structure (if using End keyword)
|
|
(simple_command
|
|
(command_name) @_cmd
|
|
(#match? @_cmd "^(Describe|Context|It|Specify|Example)$")) @open
|
|
|
|
(simple_command
|
|
(command_name) @_end
|
|
(#eq? @_end "End")) @close
|