mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
simplify
This commit is contained in:
parent
c12a713739
commit
66101e931c
4 changed files with 24 additions and 38 deletions
|
@ -342,6 +342,11 @@ impl SyntaxKind {
|
|||
'^' => CARET,
|
||||
'%' => PERCENT,
|
||||
'_' => UNDERSCORE,
|
||||
'.' => DOT,
|
||||
':' => COLON,
|
||||
'=' => EQ,
|
||||
'!' => EXCL,
|
||||
'-' => MINUS,
|
||||
_ => return None,
|
||||
};
|
||||
Some(tok)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue