mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Fix lexer not producing right token on "_"
This commit is contained in:
parent
9623e77d9f
commit
ec59d9bda5
2 changed files with 1 additions and 0 deletions
|
@ -195,6 +195,7 @@ fn scan_ident(c: char, ptr: &mut Ptr) -> SyntaxKind {
|
|||
ptr.bump();
|
||||
true
|
||||
}
|
||||
('_', None) => return UNDERSCORE,
|
||||
('_', Some(c)) if !is_ident_continue(c) => return UNDERSCORE,
|
||||
_ => false,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue