File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -499,7 +499,7 @@ Called by `imenu--generic-function'."
499
499
; ; foo.bar.baz
500
500
(" \\ <^?\\ ([a-z][a-z0-9_-]+\\ .\\ ([a-z][a-z0-9_-]*\\ .?\\ )+\\ )" 1 font-lock-type-face )
501
501
; ; (ns namespace) - special handling for single segment namespaces
502
- (,(concat " \\ <ns\\ >[ \r\n\t ]*"
502
+ (,(concat " ( \\ <ns\\ >[ \r\n\t ]*"
503
503
; ; Possibly metadata
504
504
" \\ (?:\\ ^?{[^}]+}[ \r\n\t ]*\\ )*"
505
505
; ; namespace
Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ POS."
217
217
(ert-deftest clojure-mode-syntax-table/ns-macro ()
218
218
:tags '(fontification syntax-table)
219
219
(should (eq (clojure-test-face-at 5 8 " (ns name)" ) 'font-lock-type-face ))
220
- (should (eq (clojure-test-face-at 5 13 " (ns name.name)" ) 'font-lock-type-face )))
220
+ (should (eq (clojure-test-face-at 5 13 " (ns name.name)" ) 'font-lock-type-face ))
221
+ (should (eq (clojure-test-face-at 1 10 " [ns name]" ) nil )))
221
222
222
223
(provide 'clojure-mode-test )
223
224
You can’t perform that action at this time.
0 commit comments