diff options
author | DJMcNab <[email protected]> | 2018-12-29 12:40:08 +0000 |
---|---|---|
committer | DJMcNab <[email protected]> | 2018-12-29 12:40:08 +0000 |
commit | 054f22f2312b60c8545386dadc712706323945b6 (patch) | |
tree | 1836bd501bca3a76e9dea4e114d4db3b13353f6b /crates/ra_syntax/src/string_lexing | |
parent | f3f073804cf768c0b219d89081a26bedfde8ffed (diff) |
Fix a fuzzing bug and add Cargo.lock to the fuzzing directory
Diffstat (limited to 'crates/ra_syntax/src/string_lexing')
-rw-r--r-- | crates/ra_syntax/src/string_lexing/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/string_lexing/parser.rs b/crates/ra_syntax/src/string_lexing/parser.rs index 14c6015c2..e835382fc 100644 --- a/crates/ra_syntax/src/string_lexing/parser.rs +++ b/crates/ra_syntax/src/string_lexing/parser.rs | |||
@@ -82,7 +82,7 @@ impl<'a> Parser<'a> { | |||
82 | 82 | ||
83 | fn parse_escape(&mut self, start: TextUnit) -> StringComponent { | 83 | fn parse_escape(&mut self, start: TextUnit) -> StringComponent { |
84 | if self.peek().is_none() { | 84 | if self.peek().is_none() { |
85 | return StringComponent::new(TextRange::from_to(start, start), AsciiEscape); | 85 | return StringComponent::new(TextRange::from_to(start, self.get_pos()), AsciiEscape); |
86 | } | 86 | } |
87 | 87 | ||
88 | let next = self.advance(); | 88 | let next = self.advance(); |