mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
802 B
Scheme
55 lines
802 B
Scheme
[
|
|
(typeDef)
|
|
(ifStmt)
|
|
(whenStmt)
|
|
(elifStmt)
|
|
(elseStmt)
|
|
(ofBranch) ; note: not caseStmt
|
|
(whileStmt)
|
|
(tryStmt)
|
|
(tryExceptStmt)
|
|
(tryFinallyStmt)
|
|
(forStmt)
|
|
(blockStmt)
|
|
(staticStmt)
|
|
(deferStmt)
|
|
(asmStmt)
|
|
; exprStmt?
|
|
] @indent
|
|
;; increase the indentation level
|
|
|
|
[
|
|
(ifStmt)
|
|
(whenStmt)
|
|
(elifStmt)
|
|
(elseStmt)
|
|
(ofBranch) ; note: not caseStmt
|
|
(whileStmt)
|
|
(tryStmt)
|
|
(tryExceptStmt)
|
|
(tryFinallyStmt)
|
|
(forStmt)
|
|
(blockStmt)
|
|
(staticStmt)
|
|
(deferStmt)
|
|
(asmStmt)
|
|
; exprStmt?
|
|
] @extend
|
|
;; ???
|
|
|
|
[
|
|
(returnStmt)
|
|
(raiseStmt)
|
|
(yieldStmt)
|
|
(breakStmt)
|
|
(continueStmt)
|
|
] @extend.prevent-once
|
|
;; end a level of indentation while staying indented
|
|
|
|
[
|
|
")" ; tuples
|
|
"]" ; arrays, seqs
|
|
"}" ; sets
|
|
] @outdent
|
|
;; end a level of indentation and unindent the line
|