Browse Source

Minor parsing change

gingerBill 7 years ago
parent
commit
1353d61894
1 changed files with 1 additions and 3 deletions
  1. 1 3
      src/parser.cpp

+ 1 - 3
src/parser.cpp

@@ -1943,10 +1943,8 @@ AstNode *parse_operand(AstFile *f, bool lhs) {
 			}
 			}
 			while (allow_token(f, Token_Hash)) {
 			while (allow_token(f, Token_Hash)) {
 				Token tag = f->curr_token;
 				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, "#");
 					expect_token_after(f, Token_Ident, "#");
-				} else {
-					tag = advance_token(f);
 				}
 				}
 				if (tag.string == "export") {
 				if (tag.string == "export") {
 					if (is_export) {
 					if (is_export) {