@ -245,9 +245,8 @@ impl Lexer {
fn skip_if_match(&mut self, s: &str) -> bool {
let mut n: usize = 0;
for c in s.chars() {
if self.cursor.next() == Some(c) {
n += 1;
} else {
if self.cursor.next() != Some(c) {
self.cursor.seek_back(n);
return false;
}