Address comments on PR #950
This commit is contained in:
1 parent
b52bebfbe8
commit
dccda74062
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -3373,7 +3373,7 @@ yyreduce:
|
||||
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 */
|
||||
@@ -3619,7 +3619,7 @@ yyreduce:
|
||||
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 */
|
||||
|
||||
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
%%
|
||||
|
||||
Reference in new issue
Block a user