aboutsummaryrefslogtreecommitdiffstats
path: root/moder.c
diff options
context:
space:
mode:
authorTeddy Wing2018-11-01 17:12:31 +0100
committerTeddy Wing2018-11-01 17:12:31 +0100
commit70e127ba7d9ec2ad7419085d6bcf0e8d96adef47 (patch)
tree9f7026e5597e53b31ff6eb09cfab895243060d5c /moder.c
parent6191caedd26752b6e699451bd602649f6f1200a1 (diff)
downloaddome-key-map-70e127ba7d9ec2ad7419085d6bcf0e8d96adef47.tar.bz2
parser::map_group(): Always parse to end of input
Previously, the modified input in `map_group_with_invalid_input_fails()` in this commit would fail with a result of `Ok` instead of `Err`. The `map_group()` parser would parse the first, correct line, and ignore the second, incorrect one. That's wrong. We want the whole parser to fail because it contains an invalid sequence. Do this by ensuring `eof()` follows all `definitions()`. This way we're guaranteed to always parse the whole input, and any errors within get surfaced.
Diffstat (limited to 'moder.c')
0 files changed, 0 insertions, 0 deletions