Skip to content

Commit d3873c4

Browse files
vspinubbatsov
authored andcommitted
Improve on cider-repl--root-ns-highlight-template regexp
- Disallow highlight spilling over () as in ns.foo.bar(file.clj:123)). - Start matching at the beginning of the symbol, not word. Particularly inhibit matching of namespaced keywords (which could be many).
1 parent 6055683 commit d3873c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cider-repl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ When there is a possible unfinished ansi control sequence,
561561
(buffer-local-value 'cider-repl--ns-forms-plist connection)
562562
ns)))))
563563

564-
(defvar cider-repl--root-ns-highlight-template "\\<\\(%s\\)[^$/: \t\n]+"
564+
(defvar cider-repl--root-ns-highlight-template "\\_<\\(%s\\)[^$/: \t\n()]+"
565565
"Regexp used to highlight root ns in REPL buffers.")
566566

567567
(defvar-local cider-repl--root-ns-regexp nil

0 commit comments

Comments
 (0)