@@ -188,9 +188,7 @@ impl<'a> Lexer<'a> {
188
188
return self . read_token ( start) ;
189
189
}
190
190
191
- RawToken :: LConflictMarker | RawToken :: RConflictMarker
192
- if self . had_line_break_before_last ( ) =>
193
- {
191
+ RawToken :: LConflictMarker | RawToken :: RConflictMarker => {
194
192
// All conflict markers consist of the same character repeated seven times.
195
193
// If it is a <<<<<<< or >>>>>>> marker then it is also followed by a space.
196
194
// <<<<<<<
@@ -199,8 +197,8 @@ impl<'a> Lexer<'a> {
199
197
// ^
200
198
201
199
self . emit_error_span ( fixed_len_span ( * start, 7 ) , SyntaxError :: TS1185 ) ;
202
- // self.skip_line_comment(5 );
203
- // self.skip_space::<true>();
200
+ let _ = self . input . next ( ) ;
201
+
204
202
* start = self . input . cur_pos ( ) ;
205
203
return self . read_token ( start) ;
206
204
}
@@ -326,10 +324,7 @@ impl<'a> Lexer<'a> {
326
324
* start = self . input . cur_pos ( ) ;
327
325
return self . read_token ( start) ;
328
326
}
329
- RawToken :: LineComment
330
- | RawToken :: BlockComment
331
- | RawToken :: LConflictMarker
332
- | RawToken :: RConflictMarker => {
327
+ RawToken :: LineComment | RawToken :: BlockComment => {
333
328
self . input . next ( ) . transpose ( ) ?;
334
329
// self.skip_space::<true>()?;
335
330
0 commit comments