diff options
| author | gingerBill <bill@gingerbill.org> | 2021-10-23 19:24:47 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-10-23 19:24:47 +0100 |
| commit | b4df51e4834cda2d37a353717133663e9e1393c3 (patch) | |
| tree | d98a3621bed8e2079c9f9d5794d3fd24bd9269b3 /src/parser.cpp | |
| parent | 209684d5a4843fd52a248acd361b9791a96e6205 (diff) | |
| parent | 06f47621442973a664b5928bb20295f4b7b56196 (diff) | |
Merge branch 'master' into new-matrix-type
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 83da481d5..12888a52d 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -2572,6 +2572,9 @@ bool is_literal_type(Ast *node) { case Ast_MatrixType: case Ast_CallExpr: return true; + case Ast_MultiPointerType: + // For better error messages + return true; } return false; } @@ -5426,8 +5429,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; |