revset: rewrite identifier rule in common infix-op rule pattern

I don't remember why I made it defined recursively, but it's basically the
same as "primary ~ (infix_op ~ primary)*" rule.
This commit is contained in:
Yuya Nishihara 2024-04-07 20:08:31 +09:00
parent 7f1f73b0fa
commit 73508730aa

View file

@ -16,8 +16,7 @@ whitespace = _{ " " | "\t" | "\r" | "\n" | "\x0c" }
identifier_part = @{ (ASCII_ALPHANUMERIC | "_" | "/")+ }
identifier = @{
identifier_part ~ ("." | "-" | "+" ) ~ identifier
| identifier_part
identifier_part ~ (("." | "-" | "+") ~ identifier_part)*
}
symbol = {
identifier