mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-01 09:08:51 +00:00
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:
parent
7f1f73b0fa
commit
73508730aa
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue