Browse Source

Fix missing newline check

gingerBill 4 years ago
parent
commit
bb9c1d04db
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/parser.cpp

+ 2 - 0
src/parser.cpp

@@ -2158,6 +2158,8 @@ Ast *parse_operand(AstFile *f, bool lhs) {
 			return type;
 			return type;
 		}
 		}
 
 
+		skip_possible_newline_for_literal(f);
+
 		if (allow_token(f, Token_Undef)) {
 		if (allow_token(f, Token_Undef)) {
 			if (where_token.kind != Token_Invalid) {
 			if (where_token.kind != Token_Invalid) {
 				syntax_error(where_token, "'where' clauses are not allowed on procedure literals without a defined body (replaced with ---)");
 				syntax_error(where_token, "'where' clauses are not allowed on procedure literals without a defined body (replaced with ---)");