mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +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();
|
ptr.bump();
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
|
('_', None) => return UNDERSCORE,
|
||||||
('_', Some(c)) if !is_ident_continue(c) => return UNDERSCORE,
|
('_', Some(c)) if !is_ident_continue(c) => return UNDERSCORE,
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
};
|
||||||
|
|
BIN
crates/ra_syntax/tests/data/reparse/fuzz-failures/0003.rs
Normal file
BIN
crates/ra_syntax/tests/data/reparse/fuzz-failures/0003.rs
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue