change use to usingnamespace
See #2014 `use` syntax is still accepted for now. `zig fmt` automatically updates code. After a release cycle the old syntax will be removed.
This commit is contained in:
@@ -668,7 +668,7 @@ static AstNode *ast_parse_top_level_decl(ParseContext *pc, VisibMod visib_mod) {
|
||||
return res;
|
||||
}
|
||||
|
||||
Token *use = eat_token_if(pc, TokenIdKeywordUse);
|
||||
Token *use = eat_token_if(pc, TokenIdKeywordUsingNamespace);
|
||||
if (use != nullptr) {
|
||||
AstNode *expr = ast_expect(pc, ast_parse_expr);
|
||||
expect_token(pc, TokenIdSemicolon);
|
||||
|
||||
Reference in New Issue
Block a user