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,
|
||||
};
|
||||
|
|
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
Reference in a new issue