fn peek_punct_no_term(&mut self, punct: Punct) -> bool {
        match self.lexer.peek_token() {
            Ok(tok) => tok.kind == TokenKind::Punct(punct),
            Err(_) => false,
        }
    }
Peek next token (no skipping line terminators), and check whether the token is `punct` or not.
ruruby-parse/src/parser.rs