Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/nim/indents.scm')
| -rw-r--r-- | runtime/queries/nim/indents.scm | 83 |
1 files changed, 36 insertions, 47 deletions
diff --git a/runtime/queries/nim/indents.scm b/runtime/queries/nim/indents.scm index 3b302386..67743540 100644 --- a/runtime/queries/nim/indents.scm +++ b/runtime/queries/nim/indents.scm @@ -1,59 +1,48 @@ [ - (if) - (when) - (elif_branch) - (else_branch) - (of_branch) ; note: not case_statement - (block) - (while) - (for) - (try) - (except_branch) - (finally_branch) - (defer) - (static_statement) - (proc_declaration) - (func_declaration) - (iterator_declaration) - (converter_declaration) - (method_declaration) - (template_declaration) - (macro_declaration) - (symbol_declaration) + (typeDef) + (ifStmt) + (whenStmt) + (elifStmt) + (elseStmt) + (ofBranch) ; note: not caseStmt + (whileStmt) + (tryStmt) + (tryExceptStmt) + (tryFinallyStmt) + (forStmt) + (blockStmt) + (staticStmt) + (deferStmt) + (asmStmt) + ; exprStmt? ] @indent ;; increase the indentation level [ - (if) - (when) - (elif_branch) - (else_branch) - (of_branch) ; note: not case_statement - (block) - (while) - (for) - (try) - (except_branch) - (finally_branch) - (defer) - (static_statement) - (proc_declaration) - (func_declaration) - (iterator_declaration) - (converter_declaration) - (method_declaration) - (template_declaration) - (macro_declaration) - (symbol_declaration) + (ifStmt) + (whenStmt) + (elifStmt) + (elseStmt) + (ofBranch) ; note: not caseStmt + (whileStmt) + (tryStmt) + (tryExceptStmt) + (tryFinallyStmt) + (forStmt) + (blockStmt) + (staticStmt) + (deferStmt) + (asmStmt) + ; exprStmt? ] @extend ;; ??? [ - (return_statement) - (raise_statement) - (yield_statement) - (break_statement) - (continue_statement) + (returnStmt) + (raiseStmt) + (yieldStmt) + (breakStmt) + (continueStmt) ] @extend.prevent-once ;; end a level of indentation while staying indented |