Function: smie-rule-next-p

smie-rule-next-p is a byte-compiled function defined in smie.el.gz.

Signature

(smie-rule-next-p &rest TOKENS)

Documentation

Return non-nil if the next token is among TOKENS.

Only meaningful when called from within smie-rules-function.

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-rule-next-p (&rest tokens)
  "Return non-nil if the next token is among TOKENS.
Only meaningful when called from within `smie-rules-function'."
  (let ((next
         (save-excursion
           (unless smie--after
             (smie-indent-forward-token) (setq smie--after (point)))
           (goto-char smie--after)
           (smie-indent-forward-token))))
    (member (car next) tokens)))