File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -489,7 +489,7 @@ Called by `imenu--generic-function'."
489
489
; ; FIXME: handle properly punctuations characters (commas after a character are problematic)
490
490
(" \\\\ [a-z0-9]+\\ >" 0 'clojure-character-face )
491
491
; ; Constant values (keywords), including as metadata e.g. ^:static
492
- (" \\ <^?:\\ (\\ sw\\ |\\ s_\\ )+\\ (\\ >\\ |\\ _>\\ )" 0 'clojure-keyword-face )
492
+ (" \\ <^?\\ ( :\\ (\\ sw\\ |\\ s_\\ )+\\ (\\ >\\ |\\ _>\\ )\\ ) " 1 'clojure-keyword-face )
493
493
; ; cljx annotations (#+clj and #+cljs)
494
494
(" #\\ +cljs?\\ >" 0 font-lock-preprocessor-face )
495
495
; ; Java interop highlighting
Original file line number Diff line number Diff line change @@ -171,6 +171,12 @@ POS."
171
171
:tags '(fontification syntax-table)
172
172
(should (eq (clojure-test-face-at 4 8 " (= false x)" ) 'font-lock-constant-face )))
173
173
174
+ (ert-deftest clojure-mode-syntax-table/keyword-meta ()
175
+ :tags '(fontification syntax-table)
176
+ (clojure-test-with-temp-buffer " ^:meta-data"
177
+ (should (eq (clojure-test-face-at 1 1 ) nil ))
178
+ (should (eq (clojure-test-face-at 2 11 ) 'clojure-keyword-face ))))
179
+
174
180
(ert-deftest clojure-mode-syntax-table/characters ()
175
181
:tags '(fontification syntax-table)
176
182
(should (eq (clojure-test-face-at 1 2 " \\ a" ) 'clojure-character-face ))
You can’t perform that action at this time.
0 commit comments