mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed comma-separated fields with initializers
This commit is contained in:
parent
78d63fd494
commit
02c1db0beb
1 changed files with 1 additions and 1 deletions
|
@ -5595,7 +5595,7 @@ BfFieldDeclaration* BfReducer::CreateFieldDeclaration(BfTokenNode* tokenNode, Bf
|
|||
if (fieldDeclaration->mInitializer != NULL)
|
||||
{
|
||||
MoveNode(fieldDeclaration->mInitializer, fieldDeclaration);
|
||||
auto nextToken = ExpectTokenAfter(fieldDeclaration, BfToken_Semicolon, BfToken_Tilde);
|
||||
auto nextToken = ExpectTokenAfter(fieldDeclaration, BfToken_Semicolon, BfToken_Comma, BfToken_Tilde);
|
||||
if (nextToken != NULL)
|
||||
mVisitorPos.mReadPos--; // Backtrack, someone else eats these
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue