@@ -702,49 +702,49 @@ POS."
702
702
(clojure-test-with-temp-buffer " (_c4/defconstrainedfn bar [] nil)"
703
703
(should (eq (clojure-test-face-at 2 4 ) 'font-lock-type-face ))
704
704
(should (eq (clojure-test-face-at 5 5 ) nil ))
705
- (should (eq (clojure-test-face-at 6 18 ) 'font-lock-keyword -face ))
705
+ (should (eq (clojure-test-face-at 6 18 ) 'clojure-def-symbol -face ))
706
706
(should (eq (clojure-test-face-at 23 25 ) 'font-lock-function-name-face )))
707
707
(clojure-test-with-temp-buffer " (clo/defbar foo nil)"
708
708
(should (eq (clojure-test-face-at 2 4 ) 'font-lock-type-face ))
709
709
(should (eq (clojure-test-face-at 5 5 ) nil ))
710
- (should (eq (clojure-test-face-at 6 11 ) 'font-lock-keyword -face ))
710
+ (should (eq (clojure-test-face-at 6 11 ) 'clojure-def-symbol -face ))
711
711
(should (eq (clojure-test-face-at 13 15 ) 'font-lock-function-name-face ))))
712
712
713
713
(ert-deftest clojure-mode-syntax-table/variable-def ()
714
714
:tags '(fontification syntax-table)
715
715
(should (eq (clojure-test-face-at 2 4 " (def foo 10)" )
716
- 'font-lock-keyword -face ))
716
+ 'clojure-def-symbol -face ))
717
717
(should (eq (clojure-test-face-at 6 8 " (def foo 10)" )
718
718
'font-lock-variable-name-face )))
719
719
720
720
(ert-deftest clojure-mode-syntax-table/type-def ()
721
721
:tags '(fontification syntax-table)
722
722
(clojure-test-with-temp-buffer " (deftype Foo)"
723
- (should (eq (clojure-test-face-at 2 8 ) 'font-lock-keyword -face ))
723
+ (should (eq (clojure-test-face-at 2 8 ) 'clojure-def-symbol -face ))
724
724
(should (eq (clojure-test-face-at 10 12 ) 'font-lock-type-face ))))
725
725
726
726
(ert-deftest clojure-mode-syntax-table/function-def ()
727
727
:tags '(fontification syntax-table)
728
728
(clojure-test-with-temp-buffer " (defn foo [x] x)"
729
- (should (eq (clojure-test-face-at 2 5 ) 'font-lock-keyword -face ))
729
+ (should (eq (clojure-test-face-at 2 5 ) 'clojure-def-symbol -face ))
730
730
(should (eq (clojure-test-face-at 7 9 ) 'font-lock-function-name-face ))))
731
731
732
732
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars1 ()
733
733
:tags '(fontification syntax-table)
734
734
(clojure-test-with-temp-buffer " (defn* foo [x] x)"
735
- (should (eq (clojure-test-face-at 2 6 ) 'font-lock-keyword -face ))
735
+ (should (eq (clojure-test-face-at 2 6 ) 'clojure-def-symbol -face ))
736
736
(should (eq (clojure-test-face-at 8 10 ) 'font-lock-function-name-face ))))
737
737
738
738
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars2 ()
739
739
:tags '(fontification syntax-table)
740
740
(clojure-test-with-temp-buffer " (defsomething! foo [x] x)"
741
- (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword -face ))
741
+ (should (eq (clojure-test-face-at 2 14 ) 'clojure-def-symbol -face ))
742
742
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
743
743
744
744
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars3 ()
745
745
:tags '(fontification syntax-table)
746
746
(clojure-test-with-temp-buffer " (def-something foo [x] x)"
747
- (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword -face ))
747
+ (should (eq (clojure-test-face-at 2 14 ) 'clojure-def-symbol -face ))
748
748
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
749
749
750
750
(ert-deftest clojure-mode-syntax-table/fn ()
@@ -758,26 +758,26 @@ POS."
758
758
(ert-deftest clojure-mode-syntax-table/lambda-params ()
759
759
:tags '(fontification syntax-table)
760
760
(clojure-test-with-temp-buffer " #(+ % %2 %3 %&)"
761
- (should (eq (clojure-test-face-at 5 5 ) 'font-lock-variable-name -face ))
762
- (should (eq (clojure-test-face-at 7 8 ) 'font-lock-variable-name -face ))
763
- (should (eq (clojure-test-face-at 10 11 ) 'font-lock-variable-name -face ))
764
- (should (eq (clojure-test-face-at 13 14 ) 'font-lock-variable-name -face ))))
761
+ (should (eq (clojure-test-face-at 5 5 ) 'clojure-lambda-arg -face ))
762
+ (should (eq (clojure-test-face-at 7 8 ) 'clojure-lambda-arg -face ))
763
+ (should (eq (clojure-test-face-at 10 11 ) 'clojure-lambda-arg -face ))
764
+ (should (eq (clojure-test-face-at 13 14 ) 'clojure-lambda-arg -face ))))
765
765
766
766
(ert-deftest clojure-mode-syntax-table/nil ()
767
767
:tags '(fontification syntax-table)
768
- (should (eq (clojure-test-face-at 4 6 " (= nil x)" ) 'font-lock -constant-face ))
768
+ (should (eq (clojure-test-face-at 4 6 " (= nil x)" ) 'clojure-global -constant-face ))
769
769
(should-not (eq (clojure-test-face-at 3 5 " (fnil x)" )
770
770
'font-lock-constant-face )))
771
771
772
772
(ert-deftest clojure-mode-syntax-table/true ()
773
773
:tags '(fontification syntax-table)
774
774
(should (eq (clojure-test-face-at 4 7 " (= true x)" )
775
- 'font-lock -constant-face )))
775
+ 'clojure-global -constant-face )))
776
776
777
777
(ert-deftest clojure-mode-syntax-table/false ()
778
778
:tags '(fontification syntax-table)
779
779
(should (eq (clojure-test-face-at 4 8 " (= false x)" )
780
- 'font-lock -constant-face )))
780
+ 'clojure-global -constant-face )))
781
781
782
782
(ert-deftest clojure-mode-syntax-table/keyword-meta ()
783
783
:tags '(fontification syntax-table)
0 commit comments