Sfoglia il codice sorgente

Fix missing newline check

gingerBill 4 anni fa
parent
commit
bb9c1d04db
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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 ---)");