Skip to content

Commit

Permalink
Address comments on PR #950
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Sep 16, 2015
1 parent b52bebf commit dccda74
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -3373,7 +3373,7 @@ YYLTYPE yylloc = yyloc_default;
case 126:
#line 813 "src/parser.y" /* yacc.c:1646 */
{
FAIL((yyloc), "May need parentheses around object key");
FAIL((yyloc), "May need parentheses around object key expression");
(yyval.blk) = (yyvsp[0].blk);
}
#line 3380 "src/parser.c" /* yacc.c:1646 */
Expand Down Expand Up @@ -3619,7 +3619,7 @@ YYLTYPE yylloc = yyloc_default;
case 157:
#line 910 "src/parser.y" /* yacc.c:1646 */
{
FAIL((yyloc), "May need parentheses around object key");
FAIL((yyloc), "May need parentheses around object key expression");
(yyval.blk) = (yyvsp[0].blk);
}
#line 3626 "src/parser.c" /* yacc.c:1646 */
Expand Down
4 changes: 2 additions & 2 deletions src/parser.y
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ String ':' Pattern {
$$ = gen_object_matcher($2, $5);
} |
error ':' Pattern {
FAIL(@$, "May need parentheses around object key");
FAIL(@$, "May need parentheses around object key expression");
$$ = $3;
}

Expand Down Expand Up @@ -908,7 +908,7 @@ IDENT ':' ExpD {
$$ = gen_dictpair($2, $5);
}
| error ':' ExpD {
FAIL(@$, "May need parentheses around object key");
FAIL(@$, "May need parentheses around object key expression");
$$ = $3;
}
%%
Expand Down

0 comments on commit dccda74

Please sign in to comment.