File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1956,6 +1956,11 @@ the alias in the project."
1956
1956
(cljr--goto-closest-ns)
1957
1957
(looking-at-p " (\\ s-*in-ns" )))
1958
1958
1959
+ (defun cljr--in-reader-literal-p ()
1960
+ (save-excursion
1961
+ (clojure-backward-logical-sexp 1 )
1962
+ (looking-at-p " #" )))
1963
+
1959
1964
;;;### autoload
1960
1965
(defun cljr-slash ()
1961
1966
" Inserts / as normal, but also checks for common namespace shorthands to require.
@@ -1966,7 +1971,8 @@ form."
1966
1971
(interactive )
1967
1972
(insert " /" )
1968
1973
(unless (or (cljr--in-map-destructuring?)
1969
- (cljr--in-ns-above-point-p))
1974
+ (cljr--in-ns-above-point-p)
1975
+ (cljr--in-reader-literal-p))
1970
1976
(when-let (aliases (and cljr-magic-requires
1971
1977
(not (cider-in-comment-p))
1972
1978
(not (cider-in-string-p))
You can’t perform that action at this time.
0 commit comments