aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp3
1 files changed, 1 insertions, 2 deletions
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;