Use TokenKind::similar_tokens()
This commit is contained in:
parent
cf19131cb3
commit
079c075f24
2 changed files with 5 additions and 1 deletions
|
@ -295,6 +295,7 @@ impl TokenKind {
|
|||
match *self {
|
||||
Comma => Some(vec![Dot, Lt, Semi]),
|
||||
Semi => Some(vec![Colon, Comma]),
|
||||
FatArrow => Some(vec![Eq, RArrow]),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue