Function: smie-indent--hanging-p

smie-indent--hanging-p is a byte-compiled function defined in smie.el.gz.

Signature

(smie-indent--hanging-p)

Documentation

Return non-nil if the current token is "hanging".

A hanging keyword is one that's at the end of a line except it's not at the beginning of a line.

Aliases

smie-rule-hanging-p

Source Code

;; Defined in /usr/src/emacs/lisp/emacs-lisp/smie.el.gz
(defun smie-indent--hanging-p ()
  "Return non-nil if the current token is \"hanging\".
A hanging keyword is one that's at the end of a line except it's not at
the beginning of a line."
  (and (not (smie-indent--bolp))
       (save-excursion
         (<= (line-end-position)
             (progn
               (and (zerop (length (funcall smie-forward-token-function)))
		    (not (eobp))
		    ;; Could be an open-paren.
		    (forward-char 1))
	       (funcall smie--hanging-eolp-function)
               (point))))))