File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ ENDP and DELIM."
439
439
(t )))))
440
440
441
441
(defconst clojure--collection-tag-regexp " #\\ (::[a-zA-Z0-9._-]*\\ |:?\\ ([a-zA-Z0-9._-]+/\\ )?[a-zA-Z0-9._-]+\\ )"
442
- " Collection reader macro tag regexp.
442
+ " Collection reader macro tag regexp.
443
443
It is intended to check for allowed strings that can come before a
444
444
collection literal (e.g. '[]' or '{}'), as reader macro tags.
445
445
This includes #fully.qualified/my-ns[:kw val] and #::my-ns{:kw
@@ -880,12 +880,12 @@ any number of matches of `clojure--sym-forbidden-rest-chars'."))
880
880
(2 'clojure-keyword-face ))
881
881
882
882
; ; type-hints: #^oneword
883
- (,(concat " \\ (#^\\ )\\ (" clojure--sym-regexp " ?\\ )\\ (/\\ )\\ (" clojure--sym-regexp " \\ )" )
883
+ (,(concat " \\ (#? \\ ^\\ )\\ (" clojure--sym-regexp " ?\\ )\\ (/\\ )\\ (" clojure--sym-regexp " \\ )" )
884
884
(1 'default )
885
885
(2 font-lock-type-face )
886
886
(3 'default )
887
887
(4 'default ))
888
- (,(concat " \\ (#^\\ )\\ (" clojure--sym-regexp " \\ )" )
888
+ (,(concat " \\ (#? \\ ^\\ )\\ (" clojure--sym-regexp " \\ )" )
889
889
(1 'default )
890
890
(2 font-lock-type-face ))
891
891
Original file line number Diff line number Diff line change @@ -347,9 +347,10 @@ POS."
347
347
348
348
; ; type-hint
349
349
(should (eq (clojure-test-face-at 1 2 " #^ve/yCom|pLex.stu-ff" ) 'default ))
350
- (should (eq (clojure-test-face-at 3 4 " #^ve/yCom|pLex.stu-ff" )
351
- 'font-lock-type-face ))
350
+ (should (eq (clojure-test-face-at 3 4 " #^ve/yCom|pLex.stu-ff" ) 'font-lock-type-face ))
352
351
(should (eq (clojure-test-face-at 5 21 " #^ve/yCom|pLex.stu-ff" ) 'default ))
352
+ (should (eq (clojure-test-face-at 2 3 " ^ve/yCom|pLex.stu-ff" ) 'font-lock-type-face ))
353
+ (should (eq (clojure-test-face-at 5 20 " ^ve/yCom|pLex.stu-ff" ) 'default ))
353
354
354
355
(should (eq (clojure-test-face-at 3 4 " (ve/yCom|pLex.stu-ff)" )
355
356
'font-lock-type-face ))
You can’t perform that action at this time.
0 commit comments