method

skip

skip(token_type, error = true)
public

Skips the next token if its type is token_type.

Optionally raises an error if the next token is not of the expected type.