def leapfrog(self, kind, value=None):
while self.current is not None:<EOL><INDENT>if (self.current.kind == kind and<EOL>(value is None or self.current.value == value)):<EOL><INDENT>self.consume(kind)<EOL>return<EOL><DEDENT>self.stream.move()<EOL><DEDENT>
Skip tokens in the stream until a certain token kind is reached.

        If `value` is specified, tokens whose values are different will also
        be skipped.