aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-03 17:25:51 +0000
committergingerBill <bill@gingerbill.org>2023-01-03 17:25:51 +0000
commit2720e9812778c8cf28ead9c41c46b0d578f6a7b3 (patch)
tree8f5619e2b2fb62628bb1165a5f6b522d80e967ec /src/parser.cpp
parentbb80c1b05922a1d1a76e96f0bc5edba09292b1e9 (diff)
Add `+ignore` along with `+build ignore`
Diffstat (limited to 'src/parser.cpp')
-rw-r--r--src/parser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp
index bc0fcf6be..0eb7e5fc1 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -5584,6 +5584,8 @@ gb_internal bool parse_file(Parser *p, AstFile *f) {
if (!parse_build_tag(tok, lc)) {
return false;
}
+ } else if (string_starts_with(lc, str_lit("+ignore"))) {
+ return false;
} else if (string_starts_with(lc, str_lit("+private"))) {
f->flags |= AstFile_IsPrivatePkg;
String command = string_trim_starts_with(lc, str_lit("+private "));