mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-03 19:52:30 +00:00
Fix #export proc tag
This commit is contained in:
@@ -1917,7 +1917,12 @@ AstNode *parse_ident(AstFile *f) {
|
||||
|
||||
AstNode *parse_tag_expr(AstFile *f, AstNode *expression) {
|
||||
Token token = expect_token(f, Token_Hash);
|
||||
Token name = expect_token(f, Token_Ident);
|
||||
Token name = {};
|
||||
if (f->curr_token.kind == Token_export) {
|
||||
name = expect_token(f, Token_export);
|
||||
} else {
|
||||
name = expect_token(f, Token_Ident);
|
||||
}
|
||||
return ast_tag_expr(f, token, name, expression);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user