diff --git a/src/protocol/parser/tokens.rs b/src/protocol/parser/tokens.rs index be1b418a77912e021844104de739f1e40ac3be5e..7b273223f931c88ea68e0e327cd9d3b2e049f5b8 100644 --- a/src/protocol/parser/tokens.rs +++ b/src/protocol/parser/tokens.rs @@ -320,7 +320,7 @@ impl<'a> TokenIter<'a> { /// Advances the iterator to the next (meaningful) token. pub(crate) fn consume(&mut self) { - if let Some(kind) = self.next() { + if let Some(kind) = self.next_including_comments() { if kind.has_span_end() { self.cur += 2; } else {