Changed `//+ignore` to `//+build ignore` and emit a warning for unknown tags
@@ -1,4 +1,4 @@
-//+ignore
+//+build ignore
package gzip
/*
package zlib
@@ -8,7 +8,7 @@
An example of how to use `load`.
*/
package png
import "core:image"
@@ -1,5 +1,5 @@
// This is purely for documentation
package intrinsics
// Package-Related
@@ -25,8 +25,6 @@
TODO: Handle +/- Infinity and NaN.
-
package math_big
import "core:mem"
@@ -7,7 +7,7 @@
The code started out as an idiomatic source port of libTomMath, which is in the public domain, with thanks.
import "core:time"
@@ -5634,6 +5634,8 @@ bool parse_file(Parser *p, AstFile *f) {
} else {
f->flags |= AstFile_IsLazy;
}
+ } else {
+ warning(tok, "Ignoring unknown tag '%.*s'", LIT(lc));
@@ -1,4 +1,3 @@
Copyright 2021 Jeroen van Rijn <[email protected]>.
Made available under Odin's BSD-3 license.