mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-28 02:21:12 +00:00
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.