Function: smie-rule-parent-p

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

Signature

(smie-rule-parent-p &rest PARENTS)

Documentation

Return non-nil if the current token's parent is among PARENTS.

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

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-rule-parent-p (&rest parents)
  "Return non-nil if the current token's parent is among PARENTS.
Only meaningful when called from within `smie-rules-function'."
  (member (nth 2 (smie-indent--parent)) parents))