pub(crate) fn is_term(&self) -> bool {
        matches!(
            self.kind,
            TokenKind::LineTerm | TokenKind::Eof | TokenKind::Punct(Punct::Semi)
        )
    }
Examine the token, and return true if it is a line terminator or ';' or EOF.
ruruby-parse/src/token.rs