From 2a50f9c8d410c88632f28bb8cb1325beb284d1c3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 23 Oct 2021 17:41:11 +0100 Subject: Rename `-ignore-lazy` to `-internal-ignore-lazy` --- src/parser.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index 716986b5d..ad025e145 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -5372,8 +5372,7 @@ bool parse_file(Parser *p, AstFile *f) { // Ignore } else if (f->flags & AstFile_IsTest) { // Ignore - } else if (build_context.command_kind == Command_doc && - f->pkg->kind == Package_Init) { + } else if (f->pkg->kind == Package_Init && build_context.command_kind == Command_doc) { // Ignore } else { f->flags |= AstFile_IsLazy; -- cgit v1.2.3 From 06f47621442973a664b5928bb20295f4b7b56196 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 23 Oct 2021 19:22:08 +0100 Subject: Allow parsing for `[^]T{}` to improve error messages --- src/parser.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parser.cpp') diff --git a/src/parser.cpp b/src/parser.cpp index ad025e145..7de26893e 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2526,6 +2526,9 @@ bool is_literal_type(Ast *node) { case Ast_BitSetType: case Ast_CallExpr: return true; + case Ast_MultiPointerType: + // For better error messages + return true; } return false; } -- cgit v1.2.3