Core: Brought back named loads which are a bit counter intuitive

This commit is contained in:
Krzosa Karol
2023-04-21 08:28:44 +02:00
parent d5c4caf725
commit ada87e6adf
4 changed files with 94 additions and 97 deletions

View File

@@ -920,7 +920,12 @@ parse_decl(B32 is_global) {
result = parse_enum(tname);
}
else if (token_match_pound(pctx->intern("import"_s))) {
else if (token_match_pound(pctx->intern_load)) {
Ast_File *file = parse_load(false);
result = ast_namespace(tname, file, tname->intern_val);
}
else if (token_match_pound(pctx->intern_import)) {
Ast_Module *module = parse_import(false);
result = ast_namespace(tname, module, tname->intern_val);
}