Function: gnuplot--in-string-or-comment

gnuplot--in-string-or-comment is a natively compiled function defined in gnuplot.el.

Signature

(gnuplot--in-string-or-comment &optional WHERE)

Documentation

Return non-nil if the text at WHERE is within a string or comment.

If WHERE is omitted, defaults to text at point. This is a simple wrapper for syntax-ppss.

Source Code

;; Defined in /nix/store/xvcy7r1jiw71avhnh6kmin403kpqrdhc-emacs-packages-deps/share/emacs/site-lisp/elpa/gnuplot-20260623.1111/gnuplot.el
(defun gnuplot--in-string-or-comment (&optional where)
  "Return non-nil if the text at WHERE is within a string or comment.

If WHERE is omitted, defaults to text at point.
This is a simple wrapper for `syntax-ppss'."

  (save-excursion
    (let ((parse-state (syntax-ppss where)))
      (or (nth 3 parse-state)
          (nth 4 parse-state)))))