Skip to content
Myr

Address comments on PR #950

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Tolnay · committed by David Tolnay · parent b52bebf · Browse files · 2 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+4 added−4 removed

  • other:+4 added−4 removed

2 files+4 added−4 removed

modified:src/parser.c+2 added-2 removed
3371 unmodified lines
33723373 case 126:3374#line 813 "src/parser.y" /* yacc.c:1646 */3375 {3376 FAIL((yyloc), "May need parentheses around object key");3376 FAIL((yyloc), "May need parentheses around object key expression");3377 (yyval.blk) = (yyvsp[0].blk);3378}3379#line 3380 "src/parser.c" /* yacc.c:1646 */3380 break;
237 unmodified lines
36183619 case 157:3620#line 910 "src/parser.y" /* yacc.c:1646 */3621 {3622 FAIL((yyloc), "May need parentheses around object key");3622 FAIL((yyloc), "May need parentheses around object key expression");3623 (yyval.blk) = (yyvsp[0].blk);3624 }3625#line 3626 "src/parser.c" /* yacc.c:1646 */3626 break;
267 unmodified lines
modified:src/parser.y+2 added-2 removed
809 unmodified lines
810'(' Exp ')' ':' Pattern {811 $$ = gen_object_matcher($2, $5);812} |813error ':' Pattern {814 FAIL(@$, "May need parentheses around object key");814 FAIL(@$, "May need parentheses around object key expression");815 $$ = $3;816}817818Keyword:
88 unmodified lines
907| '(' Exp ')' ':' ExpD {908 $$ = gen_dictpair($2, $5);909 }910| error ':' ExpD {911 FAIL(@$, "May need parentheses around object key");911 FAIL(@$, "May need parentheses around object key expression");912 $$ = $3;913 }914%%915
27 unmodified lines