From 8b9d45feb773e6388e9c5c585f0dfd819249502a Mon Sep 17 00:00:00 2001 From: Maximilian Roos Date: Sun, 7 Jul 2024 21:13:36 -0700 Subject: [PATCH] --- prqlc/prqlc-parser/src/parser/stmt.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prqlc/prqlc-parser/src/parser/stmt.rs b/prqlc/prqlc-parser/src/parser/stmt.rs index 17394ebefe27..0f2bca320ff9 100644 --- a/prqlc/prqlc-parser/src/parser/stmt.rs +++ b/prqlc/prqlc-parser/src/parser/stmt.rs @@ -28,7 +28,7 @@ fn module_contents() -> impl Parser, Error = PError> { let annotation = just(TokenKind::Annotate) .ignore_then(expr()) - .then_ignore(new_line().repeated()) + .then_ignore(new_line().repeated().at_least(1)) .map(|expr| Annotation { expr: Box::new(expr), });