diff --git a/src/common_token_stream.rs b/src/common_token_stream.rs index a56ddc7..3baf2b0 100644 --- a/src/common_token_stream.rs +++ b/src/common_token_stream.rs @@ -106,7 +106,8 @@ impl<'input, T: TokenSource<'input>> CommonTokenStream<'input, T> { base: UnbufferedTokenStream::new_buffered(lexer), channel, }; - r.sync(0); + let i = r.next_token_on_channel(0, channel, 1); + r.base.seek(i); r }