Fix lexer not producing right token on "_"

This commit is contained in:
pcpthm 2019-03-22 03:39:05 +09:00
parent 9623e77d9f
commit ec59d9bda5
2 changed files with 1 additions and 0 deletions
crates/ra_syntax
src/parsing
tests/data/reparse/fuzz-failures

View file

@ -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,
};