aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp6
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;