Function: sh-smie--rc-after-special-arg-p
sh-smie--rc-after-special-arg-p is a byte-compiled function defined in
sh-script.el.gz.
Signature
(sh-smie--rc-after-special-arg-p)
Documentation
Check if we're after the first arg of an if/while/for/... construct.
Returns the construct's token and moves point before it, if so.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defun sh-smie--rc-after-special-arg-p ()
"Check if we're after the first arg of an if/while/for/... construct.
Returns the construct's token and moves point before it, if so."
(forward-comment (- (point)))
(when (looking-back ")\\|\\_<not" (- (point) 3))
(ignore-errors
(let ((forward-sexp-function nil))
(forward-sexp -1)
(car (member (funcall smie-backward-token-function)
'("if" "for" "switch" "while")))))))