mirror of
https://github.com/ivuorinen/shellspec-zed.git
synced 2026-01-26 11:14:05 +00:00
feat: plugin code, updates
This commit is contained in:
25
languages/shellspec/brackets.scm
Normal file
25
languages/shellspec/brackets.scm
Normal file
@@ -0,0 +1,25 @@
|
||||
; 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
|
||||
Reference in New Issue
Block a user