diff --git a/src/parser.rs b/src/parser.rs index 114e85d..37d4d85 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -1792,6 +1792,7 @@ impl Parser { let condition = Box::new(self.parse_expr()?); + self.skip_newlines(); self.expect(TokenKind::Then)?; self.skip_newlines(); let then_branch = Box::new(self.parse_expr()?);