@@ -731,6 +731,34 @@ POS."
731
731
(should (eq (clojure-test-face-at 6 8 " (def foo 10)" )
732
732
'font-lock-variable-name-face )))
733
733
734
+ (ert-deftest clojure-mode-syntax-table/variable-def-string ()
735
+ :tags '(fontification syntax-table)
736
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" hello\" )" )
737
+ 'font-lock-string-face ))
738
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" hello\" )" )
739
+ 'font-lock-string-face ))
740
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" hello\" )" )
741
+ 'font-lock-string-face ))
742
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" hello\"\n )" )
743
+ 'font-lock-string-face )))
744
+
745
+ (ert-deftest clojure-mode-syntax-table/variable-def-string-with-docstring ()
746
+ :tags '(fontification syntax-table)
747
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" usage\" \" hello\" )" )
748
+ 'font-lock-doc-face ))
749
+ (should (eq (clojure-test-face-at 18 24 " (def foo \" usage\" \" hello\" )" )
750
+ 'font-lock-string-face ))
751
+ (should (eq (clojure-test-face-at 18 24 " (def foo \" usage\" \" hello\" )" )
752
+ 'font-lock-string-face ))
753
+ (should (eq (clojure-test-face-at 21 27 " (def foo \" usage\" \n \" hello\" )" )
754
+ 'font-lock-string-face ))
755
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" usage\" \" hello\" )" )
756
+ 'font-lock-doc-face ))
757
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" usage\" \n \" hello\" )" )
758
+ 'font-lock-doc-face ))
759
+ (should (eq (clojure-test-face-at 24 30 " (def foo \n \" usage\" \n \" hello\" )" )
760
+ 'font-lock-string-face )))
761
+
734
762
(ert-deftest clojure-mode-syntax-table/type-def ()
735
763
:tags '(fontification syntax-table)
736
764
(clojure-test-with-temp-buffer " (deftype Foo)"
0 commit comments