diff options
Diffstat (limited to 'src/parser/input.rs')
-rw-r--r-- | src/parser/input.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/parser/input.rs b/src/parser/input.rs index 2ad621166..4d74ac1b1 100644 --- a/src/parser/input.rs +++ b/src/parser/input.rs | |||
@@ -46,10 +46,7 @@ impl<'t> ParserInput<'t> { | |||
46 | if !(idx < self.tokens.len()) { | 46 | if !(idx < self.tokens.len()) { |
47 | return ""; | 47 | return ""; |
48 | } | 48 | } |
49 | let range = TextRange::from_len( | 49 | let range = TextRange::from_len(self.start_offsets[idx], self.tokens[idx].len); |
50 | self.start_offsets[idx], | ||
51 | self.tokens[idx].len | ||
52 | ); | ||
53 | &self.text[range] | 50 | &self.text[range] |
54 | } | 51 | } |
55 | } | 52 | } |