branch constructor multiline

✓ Passing This code compiles and runs correctly.

Code

// ============================================================================
// Regression test: multi-line branch constructor inside pipeline
// Ensures parser tolerates whitespace when branch constructor body spans lines
// ============================================================================

~event validate { val: i32 }
| positive { val: i32 }
| negative { val: i32 }
| zero {}

~event compute { value: i32 }
| result { doubled: i32 }

~proc compute {
    const output = ~validate(val: value)
        | positive p |> result { doubled: p.val * 2 }
        | negative |> result { doubled: 0 }
        | zero |> result {
            doubled: 0
        }

    return output;
}
input.kz