Skip to content

Commit c8b3ed0

Browse files
committed
Skip attributes that can occur after the enum identifier
(this fixes some parser errors)
1 parent aa0a8e9 commit c8b3ed0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

generator/parser/parser.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,8 @@ bool Parser::parseEnumerator(EnumeratorAST *&node)
23632363
EnumeratorAST *ast = CreateNode<EnumeratorAST>(_M_pool);
23642364
ast->id = id;
23652365

2366+
skipAttributes();
2367+
23662368
if (token_stream.lookAhead() == '=')
23672369
{
23682370
nextToken();

0 commit comments

Comments
 (0)