mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 20:17:48 +00:00
Minor parsing change
This commit is contained in:
@@ -1943,10 +1943,8 @@ AstNode *parse_operand(AstFile *f, bool lhs) {
|
||||
}
|
||||
while (allow_token(f, Token_Hash)) {
|
||||
Token tag = f->curr_token;
|
||||
if (f->curr_token.kind != Token_Ident && f->curr_token.kind != Token_export) {
|
||||
if (!allow_token(f, Token_Ident) && !allow_token(f, Token_export)) {
|
||||
expect_token_after(f, Token_Ident, "#");
|
||||
} else {
|
||||
tag = advance_token(f);
|
||||
}
|
||||
if (tag.string == "export") {
|
||||
if (is_export) {
|
||||
|
||||
Reference in New Issue
Block a user