File tree 2 files changed +5
-5
lines changed 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1923,10 +1923,8 @@ DIRECTION is `forward' or `backward'."
1923
1923
(save-match-data
1924
1924
(goto-char end)
1925
1925
(clojure-forward-logical-sexp)
1926
- (when (and (looking-back clojure--sym-regexp end 'greedy )
1927
- (not (clojure--in-string-p))
1928
- (not (clojure--in-comment-p)))
1929
- (setq candidate (match-string-no-properties 0 )))))))
1926
+ (unless (or (clojure--in-string-p) (clojure--in-comment-p))
1927
+ (setq candidate (thing-at-point 'symbol )))))))
1930
1928
candidate))
1931
1929
1932
1930
(defun clojure-find-ns ()
Original file line number Diff line number Diff line change 92
92
(with-clojure-buffer " (ns foo+)"
93
93
(expect (clojure-find-ns) :to-equal " foo+" ))
94
94
(with-clojure-buffer " (ns bar**baz$-_quux)"
95
- (expect (clojure-find-ns) :to-equal " bar**baz$-_quux" )))
95
+ (expect (clojure-find-ns) :to-equal " bar**baz$-_quux" ))
96
+ (with-clojure-buffer " (ns aoc-2019.puzzles.day14)"
97
+ (expect (clojure-find-ns) :to-equal " aoc-2019.puzzles.day14" )))
96
98
(it " should support in-ns forms"
97
99
(with-clojure-buffer " (in-ns 'bar.baz)"
98
100
(expect (clojure-find-ns) :to-equal " bar.baz" )))
You can’t perform that action at this time.
0 commit comments