Address comments on PR #950

This commit is contained in:
David Tolnay committed 2015-09-16 10:48:50 -07:00
1 parent b52bebfbe8
commit dccda74062
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -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;
}
%%