Debian Codegraph @

runtime/queries/matlab/indents.scm

raw symbols SCIP
1 [
2 (arguments_statement)
3 (if_statement)
4 (for_statement)
5 (while_statement)
6 (switch_statement)
7 (try_statement)
8 (function_definition)
9 (class_definition)
10 (enumeration)
11 (events)
12 (methods)
13 (properties)
14 ] @indent
15
16 ; switch arms add the second indent level (case keyword at switch level, body
17 ; one deeper); they stay @indent.
18 [
19 (case_clause)
20 (otherwise_clause)
21 ] @indent @extend
22
23 ; if/try branch keywords align with the construct: the enclosing statement
24 ; already indents their bodies, so the clauses are NOT @indent and the keyword
25 ; outdents.
26 [
27 "else"
28 "elseif"
29 "catch"
30 "end"
31 ] @outdent