about summary refs log tree commit diff stats
path: root/js/baba-yaga/scratch/baba/indentation_test.baba
blob: 3e0a65936645a717ebef2d46c3b61911ff09e1a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Test proper indentation
simpleFunc : x -> x + 1;

complexFunc : x ->
  when x is
    0 then "zero"
    1 then "one"
    _ then "other";

withFunc : a b ->
  with (
    sum : a + b;
    diff : a - b;
  ) ->
    {sum: sum, diff: diff};

varWithWhen :
  when true is
    true then "yes"
    false then "no";