diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-01-17 06:44:51 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-01-17 18:09:38 +0100 |
commit | 5879c8dc5a391ce3d9de68f50326121babc8d1be (patch) | |
tree | 56141ef6a8ce51e81fa1880ef3355b2867d89e78 /src/complain.c | |
parent | d5d148630ad3d10d68a9e7634c1c8f7767335938 (diff) | |
download | bison-5879c8dc5a391ce3d9de68f50326121babc8d1be.tar.gz |
fixits: handle per-rule duplicates
* src/complain.c (duplicate_rule_directive): Here.
* tests/actions.at (Invalid uses of %empty): Check it.
Diffstat (limited to 'src/complain.c')
-rw-r--r-- | src/complain.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/complain.c b/src/complain.c index d623bb45..82258c62 100644 --- a/src/complain.c +++ b/src/complain.c @@ -421,4 +421,5 @@ duplicate_rule_directive (char const *directive, complain_indent (&second, complaint, &i, _("only one %s allowed per rule"), directive); i += SUB_INDENT; complain_indent (&first, complaint, &i, _("previous declaration")); + fixits_register (&second, ""); } |