Debian Codegraph @

runtime/queries/koka/indents.scm

raw symbols SCIP
1 [
2 (opexpr [index: (arguments) call: (arguments)]) ; Applications.
3 (atom ["[" "("]) ; Lists and tuples.
4 (funbody)
5 (block)
6 (constructor)
7 (handlerexpr)
8 (opclausex)
9 ] @indent
10
11 [
12 (typedecl
13 [(typeid) (opdecls)]) ; Avoid matching single-operation effects.
14 (externdecl)
15 (matchexpr)
16 (matchrule)
17
18 ; For ifexprs, branches (once they exist) will contain blocks if they're
19 ; indented so we just need to make sure the initial indent happens when we're
20 ; creating them.
21 "then"
22 "else"
23 ] @indent @extend
24
25 (matchrule "->" @indent @extend)
26
27 ; Handling for error recovery.
28 (ERROR "fun") @indent @extend
29 (ERROR "match") @indent @extend
30 (ERROR "->" @indent.always @extend)
31
32 ; Don't outdent on function parameter declarations.
33 (atom ")" @outdent @extend.prevent-once)
34
35 [
36 "]"
37 "}"
38 ] @outdent @extend.prevent-once