@@ -718,6 +718,34 @@ POS."
718
718
(should (eq (clojure-test-face-at 6 8 " (def foo 10)" )
719
719
'font-lock-variable-name-face )))
720
720
721
+ (ert-deftest clojure-mode-syntax-table/variable-def-string ()
722
+ :tags '(fontification syntax-table)
723
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" hello\" )" )
724
+ 'font-lock-string-face ))
725
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" hello\" )" )
726
+ 'font-lock-string-face ))
727
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" hello\" )" )
728
+ 'font-lock-string-face ))
729
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" hello\"\n )" )
730
+ 'font-lock-string-face )))
731
+
732
+ (ert-deftest clojure-mode-syntax-table/variable-def-string-with-docstring ()
733
+ :tags '(fontification syntax-table)
734
+ (should (eq (clojure-test-face-at 10 16 " (def foo \" usage\" \" hello\" )" )
735
+ 'font-lock-doc-face ))
736
+ (should (eq (clojure-test-face-at 18 24 " (def foo \" usage\" \" hello\" )" )
737
+ 'font-lock-string-face ))
738
+ (should (eq (clojure-test-face-at 18 24 " (def foo \" usage\" \" hello\" )" )
739
+ 'font-lock-string-face ))
740
+ (should (eq (clojure-test-face-at 21 27 " (def foo \" usage\" \n \" hello\" )" )
741
+ 'font-lock-string-face ))
742
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" usage\" \" hello\" )" )
743
+ 'font-lock-doc-face ))
744
+ (should (eq (clojure-test-face-at 13 19 " (def foo \n \" usage\" \n \" hello\" )" )
745
+ 'font-lock-doc-face ))
746
+ (should (eq (clojure-test-face-at 24 30 " (def foo \n \" usage\" \n \" hello\" )" )
747
+ 'font-lock-string-face )))
748
+
721
749
(ert-deftest clojure-mode-syntax-table/type-def ()
722
750
:tags '(fontification syntax-table)
723
751
(clojure-test-with-temp-buffer " (deftype Foo)"
0 commit comments