Debian Codegraph @

runtime/queries/nim/indents.scm

raw symbols SCIP
1 [
2 (if)
3 (when)
4 (elif_branch)
5 (else_branch)
6 (of_branch) ; note: not case_statement
7 (block)
8 (while)
9 (for)
10 (try)
11 (except_branch)
12 (finally_branch)
13 (defer)
14 (static_statement)
15 (proc_declaration)
16 (func_declaration)
17 (iterator_declaration)
18 (converter_declaration)
19 (method_declaration)
20 (template_declaration)
21 (macro_declaration)
22 (symbol_declaration)
23 ] @indent
24 ;; increase the indentation level
25
26 [
27 (if)
28 (when)
29 (elif_branch)
30 (else_branch)
31 (of_branch) ; note: not case_statement
32 (block)
33 (while)
34 (for)
35 (try)
36 (except_branch)
37 (finally_branch)
38 (defer)
39 (static_statement)
40 (proc_declaration)
41 (func_declaration)
42 (iterator_declaration)
43 (converter_declaration)
44 (method_declaration)
45 (template_declaration)
46 (macro_declaration)
47 (symbol_declaration)
48 ] @extend
49 ;; ???
50
51 [
52 (return_statement)
53 (raise_statement)
54 (yield_statement)
55 (break_statement)
56 (continue_statement)
57 ] @extend.prevent-once
58 ;; end a level of indentation while staying indented
59
60 [
61 ")" ; tuples
62 "]" ; arrays, seqs
63 "}" ; sets
64 ] @outdent
65 ;; end a level of indentation and unindent the line