aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-07-11 18:58:52 +0200
committerDanielGavin <danielgavin5@hotmail.com>2024-07-11 18:58:52 +0200
commit83b825e689d22e3e36d44c170e86cb1062f84b11 (patch)
tree5962b18aef1f8985b5fabb00856abb3c931784d3 /src/common
parentaffd8a59151d4bcdccce0ac60016a8b6d140acb7 (diff)
Treat //+build ignore as private file
Diffstat (limited to 'src/common')
-rw-r--r--src/common/ast.odin3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/ast.odin b/src/common/ast.odin
index b215eb8..4f1b25d 100644
--- a/src/common/ast.odin
+++ b/src/common/ast.odin
@@ -304,6 +304,9 @@ collect_value_decl :: proc(
is_private_file = true
}
}
+ } else if strings.has_prefix(txt, "//+build ignore") {
+ is_private_pkg = true
+ is_private_file = true
}
}
}