aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
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 ---)");