We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pretty simple to add to parser.
fn expectParenExpr(p: *Parser) !NodeIndex { - _ = try p.expectToken(.paren_left); + const main_token = try p.expectToken(.paren_left); const expr = try p.expression() orelse { try p.errors.add( p.peekToken(.loc, 0), @@ -1491,7 +1491,11 @@ fn expectParenExpr(p: *Parser) !NodeIndex { return error.Parsing; }; _ = try p.expectToken(.paren_right); - return expr; + return try p.addNode(.{ + .tag = .paren_expr, + .main_token = main_token, + .lhs = expr, + }); }
The text was updated successfully, but these errors were encountered:
what's the point?
Sorry, something went wrong.
Duplicate of #1091
No branches or pull requests
Pretty simple to add to parser.
The text was updated successfully, but these errors were encountered: