mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Add #+test to replace _test.odin
This commit is contained in:
@@ -6561,6 +6561,10 @@ gb_internal bool parse_file_tag(const String &lc, const Token &tok, AstFile *f)
|
|||||||
} else if (string_starts_with(lc, str_lit("vet"))) {
|
} else if (string_starts_with(lc, str_lit("vet"))) {
|
||||||
f->vet_flags = parse_vet_tag(tok, lc);
|
f->vet_flags = parse_vet_tag(tok, lc);
|
||||||
f->vet_flags_set = true;
|
f->vet_flags_set = true;
|
||||||
|
} else if (string_starts_with(lc, str_lit("test"))) {
|
||||||
|
if ((build_context.command_kind & Command_test) == 0) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else if (string_starts_with(lc, str_lit("ignore"))) {
|
} else if (string_starts_with(lc, str_lit("ignore"))) {
|
||||||
return false;
|
return false;
|
||||||
} else if (string_starts_with(lc, str_lit("private"))) {
|
} else if (string_starts_with(lc, str_lit("private"))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user