We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 174b1e1 commit 83ce80cCopy full SHA for 83ce80c
clojure-mode.el
@@ -566,11 +566,15 @@ This could cause problems.
566
567
(defsubst clojure-in-docstring-p ()
568
"Check whether point is in a docstring."
569
- (eq (get-text-property (point) 'face) 'font-lock-doc-face))
+ (let ((ppss (syntax-ppss)))
570
+ ;; are we in a string?
571
+ (when (nth 3 ppss)
572
+ ;; check font lock at the start of the string
573
+ (eq (get-text-property (nth 8 ppss) 'face)
574
+ 'font-lock-doc-face))))
575
576
(defsubst clojure-docstring-fill-prefix ()
577
"The prefix string used by `clojure-fill-paragraph'.
-
578
It is simply `clojure-docstring-fill-prefix-width' number of spaces."
579
(make-string clojure-docstring-fill-prefix-width ? ))
580
0 commit comments