Function: clojure-string-start
clojure-string-start is a byte-compiled function defined in
clojure-mode.el.
Signature
(clojure-string-start &optional REGEX)
Documentation
Return the position of the " that begins the string at point.
If REGEX is non-nil, return the position of the # that begins the regex at point. If point is not inside a string or regex, return nil.
Source Code
;; Defined in ~/.emacs.d/elpa/clojure-mode-20260325.811/clojure-mode.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Better docstring filling for clojure-mode
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun clojure-string-start (&optional regex)
"Return the position of the \" that begins the string at point.
If REGEX is non-nil, return the position of the # that begins the
regex at point. If point is not inside a string or regex, return
nil."
(let ((ppss (syntax-ppss)))
(when (nth 3 ppss) ;; Are we really in a string?
(let* ((beg (nth 8 ppss))
(hash (eq ?# (char-before beg))))
(if regex
(and hash (1- beg))
(and (not hash) beg))))))