Auto merge of #105701 - RedDocMD:bug-105634, r=cjgillot
Allow .. to be parsed as let initializer .. and ..= are valid expressions, however when used in a let statement it is not parsed. Fixes #105634
This commit is contained in:
commit
300aa907a6
3 changed files with 19 additions and 3 deletions
|
@ -379,6 +379,10 @@ impl Token {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn is_range_separator(&self) -> bool {
|
||||
[DotDot, DotDotDot, DotDotEq].contains(&self.kind)
|
||||
}
|
||||
|
||||
pub fn is_op(&self) -> bool {
|
||||
match self.kind {
|
||||
Eq | Lt | Le | EqEq | Ne | Ge | Gt | AndAnd | OrOr | Not | Tilde | BinOp(_)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue