aboutsummaryrefslogtreecommitdiff
path: root/src/parser.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-02-23 20:40:48 +0000
committergingerBill <bill@gingerbill.org>2021-02-23 20:40:48 +0000
commit8f9111e5526d7bf4c58cfd127d45b1d229a3d9d3 (patch)
treeec89180590e1505b2d5e59a0481be5dfe5d37058 /src/parser.cpp
parent731e6ca3a6eda8039b36a81b5ac3683b89a487d4 (diff)
Build tag to make all declarations within a file private to the package `//+private`
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 a60c5033d..9e5055f73 100644
--- a/src/parser.cpp
+++ b/src/parser.cpp
@@ -5176,6 +5176,8 @@ bool parse_file(Parser *p, AstFile *f) {
if (!parse_build_tag(tok, lc)) {
return false;
}
+ } else if (lc == "+private") {
+ f->is_private = true;
}
}
}