We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1125c8 commit 76489c6Copy full SHA for 76489c6
generator/parser/parser.cpp
@@ -3712,6 +3712,17 @@ bool Parser::parsePrimaryExpression(ExpressionAST *&node)
3712
CHECK(')');
3713
break;
3714
3715
+ case '{':
3716
+ nextToken();
3717
+
3718
+ // support for new-style initializers
3719
+ if (token_stream.lookAhead() != '}' && !parseExpression(ast->sub_expression)) {
3720
+ return false;
3721
+ }
3722
3723
+ CHECK('}');
3724
+ break;
3725
3726
default:
3727
if (!parseName(ast->name, true)) // this can also be a template
3728
return false;
0 commit comments