forked from mirrors/jj
45c4734b52
Previously an expression 'foo-bar-' failed to parse because 1. try first rule: 'foo-bar-' matches (identifier_part+ ~ '-')+, but the trailing '' doesn't match identifier_part+ 2. fall back to second rule: 'foo' matches identifier_part+ => (identifier 'foo') Instead, we need to consume as much (identifier_part ~ '-' ~ ...) as possible before falling back to the identifier_part rule. I think the trailing + of identifier_part+ is redundant, so removed it as well. |
||
---|---|---|
.. | ||
src | ||
tests | ||
build.rs | ||
Cargo.toml |