ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Yuya Nishihara 45c4734b52 revset: fix parsing of concatenated-identifier in expression
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.
2022-10-06 21:56:41 +09:00
..
src revset: fix parsing of concatenated-identifier in expression 2022-10-06 21:56:41 +09:00
tests working_copy: return {operation_id, workspace_id} by reference 2022-10-03 21:41:20 -07:00
build.rs cleanup: remove extern crate declarations 2022-09-21 22:24:09 -07:00
Cargo.toml cargo: enable only config crate's toml feature 2022-10-05 22:12:12 -07:00