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 61421db commit f13aa84Copy full SHA for f13aa84
1 file changed
clojure-mode.el
@@ -1990,12 +1990,13 @@ work). To set it from Lisp code, use
1990
If REGEX is non-nil, return the position of the # that begins the
1991
regex at point. If point is not inside a string or regex, return
1992
nil."
1993
- (when (nth 3 (syntax-ppss)) ;; Are we really in a string?
1994
- (let* ((beg (nth 8 (syntax-ppss)))
1995
- (hash (eq ?# (char-before beg))))
1996
- (if regex
1997
- (and hash (1- beg))
1998
- (and (not hash) beg)))))
+ (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))
1999
+ (and (not hash) beg))))))
2000
2001
(defun clojure-char-at-point ()
2002
"Return the char at point or nil if at buffer end."
0 commit comments