Skip to content

Commit 04418d1

Browse files
yuhan0bbatsov
authored andcommitted
Fix detection of docstring when string contains escape characters
(sexp-at-point) parses the string as an emacs-lisp string
1 parent c3342df commit 04418d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clojure-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1007,7 +1007,7 @@ highlighted region)."
10071007
(not (and (string= "def" firstsym)
10081008
(save-excursion
10091009
(goto-char startpos)
1010-
(goto-char (+ startpos (length (sexp-at-point)) 2))
1010+
(goto-char (end-of-thing 'sexp))
10111011
(looking-at "[ \r\n\t]*\)")))))
10121012
font-lock-doc-face
10131013
font-lock-string-face))

0 commit comments

Comments
 (0)