File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -490,10 +490,6 @@ Called by `imenu--generic-function'."
490
490
(" \\\\ [a-z0-9]+\\ >" 0 'clojure-character-face )
491
491
; ; Constant values (keywords), including as metadata e.g. ^:static
492
492
(" \\ <^?:\\ (\\ sw\\ |\\ s_\\ )+\\ (\\ >\\ |\\ _>\\ )" 0 'clojure-keyword-face )
493
- ; ; Meta type hint #^Type or ^Type
494
- (" \\ (#?^\\ )\\ (\\ (\\ sw\\ |\\ s_\\ )+\\ )"
495
- (1 font-lock-preprocessor-face )
496
- (2 font-lock-type-face ))
497
493
; ; cljx annotations (#+clj and #+cljs)
498
494
(" #\\ +cljs?\\ >" 0 font-lock-preprocessor-face )
499
495
; ; Java interop highlighting
@@ -502,7 +498,7 @@ Called by `imenu--generic-function'."
502
498
; ; .foo .barBaz .qux01 .-flibble .-flibbleWobble
503
499
(" \\ <\\ .-?[a-z][a-zA-Z0-9]*\\ >" 0 'clojure-interop-method-face )
504
500
; ; Foo Bar$Baz Qux_ World_OpenUDP Foo. Babylon15.
505
- (" \\ (?:\\ <\\ |\\ .\\ |/\\ )\\ ([A-Z][a-zA-Z0-9_]*[a-zA-Z0-9$_]+\\ .?\\ >\\ )" 1 font-lock-type-face )
501
+ (" \\ (?:\\ <\\ |\\ .\\ |/\\ |#?^ \\ )\\ ([A-Z][a-zA-Z0-9_]*[a-zA-Z0-9$_]+\\ .?\\ >\\ )" 1 font-lock-type-face )
506
502
; ; foo.bar.baz
507
503
(" \\ <[a-z][a-z0-9_-]+\\ .\\ ([a-z][a-z0-9_-]+\\ .?\\ )+" 0 font-lock-type-face )
508
504
; ; foo/ Foo/
Original file line number Diff line number Diff line change 86
86
:tags '(fontification syntax-table)
87
87
(should (eq (clojure-test-face-at 1 9 " SomeClass" ) 'font-lock-type-face )))
88
88
89
+ (ert-deftest clojure-mode-syntax-table/type-hint ()
90
+ :tags '(fontification syntax-table)
91
+ (clojure-test-with-temp-buffer " #^SomeClass"
92
+ (should (eq (clojure-test-face-at 3 11 ) 'font-lock-type-face ))
93
+ (should (eq (clojure-test-face-at 1 2 ) nil ))))
94
+
89
95
(ert-deftest clojure-mode-syntax-table/constructor ()
90
96
:tags '(fontification syntax-table)
91
97
(should (eq (clojure-test-face-at 2 11 " (SomeClass.)" ) 'font-lock-type-face ))
You can’t perform that action at this time.
0 commit comments