diff options
-rw-r--r-- | src/parse/root.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse/root.cpp b/src/parse/root.cpp index a6683925..13009014 100644 --- a/src/parse/root.cpp +++ b/src/parse/root.cpp @@ -875,11 +875,11 @@ AST::Enum Parse_EnumDef(TokenStream& lex, const AST::MetaItems& meta_items) }
AST::MetaItems item_attrs;
- while( tok.type() == TOK_ATTR_OPEN )
+ while( LOOK_AHEAD(lex) == TOK_ATTR_OPEN )
{
+ GET_TOK(tok, lex);
item_attrs.push_back( Parse_MetaItem(lex) );
GET_CHECK_TOK(tok, lex, TOK_SQUARE_CLOSE);
- GET_TOK(tok, lex);
}
SET_ATTRS(lex, item_attrs);
|