diff options
Diffstat (limited to 'crates/ra_syntax/src/parser_impl')
-rw-r--r-- | crates/ra_syntax/src/parser_impl/event.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/crates/ra_syntax/src/parser_impl/event.rs b/crates/ra_syntax/src/parser_impl/event.rs index 1445401bc..bf9c1cef0 100644 --- a/crates/ra_syntax/src/parser_impl/event.rs +++ b/crates/ra_syntax/src/parser_impl/event.rs | |||
@@ -162,9 +162,10 @@ impl<'a, S: Sink> EventProcessor<'a, S> { | |||
162 | .sum::<TextUnit>(); | 162 | .sum::<TextUnit>(); |
163 | self.leaf(kind, len, n_raw_tokens); | 163 | self.leaf(kind, len, n_raw_tokens); |
164 | } | 164 | } |
165 | Event::Error { msg } => self.sink.error( | 165 | Event::Error { msg } => self.sink.error(SyntaxError::new( |
166 | SyntaxError::new(SyntaxErrorKind::ParseError(msg), self.text_pos), | 166 | SyntaxErrorKind::ParseError(msg), |
167 | ), | 167 | self.text_pos, |
168 | )), | ||
168 | } | 169 | } |
169 | } | 170 | } |
170 | self.sink | 171 | self.sink |