From bb9c1d04db025f5497d8e2cc4f3c6346bfd298cc Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 4 May 2021 23:41:35 +0100 Subject: [PATCH] Fix missing newline check --- src/parser.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser.cpp b/src/parser.cpp index d048e78e7..d0a2c933c 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2158,6 +2158,8 @@ Ast *parse_operand(AstFile *f, bool lhs) { return type; } + skip_possible_newline_for_literal(f); + if (allow_token(f, Token_Undef)) { if (where_token.kind != Token_Invalid) { syntax_error(where_token, "'where' clauses are not allowed on procedure literals without a defined body (replaced with ---)");