diff options
Diffstat (limited to 'js/baba-yaga/scratch/baba/indentation_test.baba')
-rw-r--r-- | js/baba-yaga/scratch/baba/indentation_test.baba | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/baba-yaga/scratch/baba/indentation_test.baba b/js/baba-yaga/scratch/baba/indentation_test.baba new file mode 100644 index 0000000..3e0a659 --- /dev/null +++ b/js/baba-yaga/scratch/baba/indentation_test.baba @@ -0,0 +1,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"; |