Skip to content

Commit 0c69c93

Browse files
p4v4nbbatsov
authored andcommitted
Support in-ns in clojure-ts-find-ns
1 parent a923aa8 commit 0c69c93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

clojure-ts-mode.el

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,12 @@ See `clojure-ts--font-lock-settings' for usage of MARKDOWN-AVAILABLE."
10211021
'(((source (list_lit
10221022
:anchor (sym_lit name: (sym_name) @ns)
10231023
:anchor (sym_lit name: (sym_name) @ns-name)))
1024-
(:equal @ns "ns")))))
1024+
(:equal @ns "ns"))
1025+
((source (list_lit
1026+
:anchor (sym_lit name: (sym_name) @in-ns)
1027+
:anchor (quoting_lit
1028+
:anchor (sym_lit name: (sym_name) @ns-name))))
1029+
(:equal @in-ns "in-ns")))))
10251030

10261031
(defun clojure-ts-find-ns ()
10271032
"Return the name of the current namespace."

0 commit comments

Comments
 (0)