Yuya Nishihara
ce3397c2cb
revset: combine operator parsing steps
...
I'm thinking of adding alias expansion at this stage, and it would be a bit
tedious to pass around mutable context by function parameter. So let's reduce
the number of the intermediate functions.
This also produces a better error message.
2022-11-25 11:01:15 +09:00
Yuya Nishihara
1717690a64
revset: leverage SOI/EOI markers to detect incomplete parser input
...
The error message is still a bit cryptic, but I don't think it's worse than
the original "incomplete parse" error.
https://pest.rs/book/grammars/syntax.html#start-and-end-of-input
2022-11-17 01:11:08 +09:00
Yuya Nishihara
1c4888f769
revset: report bad number of arguments with span
2022-11-03 09:41:04 +09:00
Yuya Nishihara
b938b5e907
revset: report invalid string argument with span
...
Also dropped "found: {}" from the error summary as it's obvious.
2022-11-03 09:41:04 +09:00
Yuya Nishihara
aeee0acd08
revset: report unknown function with span
2022-11-03 09:41:04 +09:00
Yuya Nishihara
fdbd44571d
revset: report unparsable file path with span
2022-11-03 09:41:04 +09:00