mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Fix a fuzzing bug and add Cargo.lock to the fuzzing directory
This commit is contained in:
parent
f3f073804c
commit
054f22f231
3 changed files with 532 additions and 2 deletions
|
@ -82,7 +82,7 @@ impl<'a> Parser<'a> {
|
|||
|
||||
fn parse_escape(&mut self, start: TextUnit) -> StringComponent {
|
||||
if self.peek().is_none() {
|
||||
return StringComponent::new(TextRange::from_to(start, start), AsciiEscape);
|
||||
return StringComponent::new(TextRange::from_to(start, self.get_pos()), AsciiEscape);
|
||||
}
|
||||
|
||||
let next = self.advance();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue