Function: sh-in-comment-or-string

sh-in-comment-or-string is a byte-compiled function defined in sh-script.el.gz.

Signature

(sh-in-comment-or-string START)

Documentation

Return non-nil if START is in a comment or string.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/sh-script.el.gz
(defun sh-in-comment-or-string (start)
  "Return non-nil if START is in a comment or string."
  (save-excursion
    (let ((state (syntax-ppss start)))
      (or (nth 3 state) (nth 4 state)))))