@@ -87,15 +87,37 @@ DESCRIPTION is the description of the spec."
87
87
(" (defrecord a [b c])" (2 10 font-lock-keyword-face ))
88
88
(" (deftype a [b c])" (2 8 font-lock-keyword-face ))
89
89
(" (defstruct a :b :c)" (2 10 font-lock-keyword-face ))
90
- (" (deftest a (is (= 1 1)))" (2 8 font-lock-keyword-face ))
91
-
92
-
93
- ; ; TODO: copied from clojure-mode, but failing
94
- ; ; ("(defne [x y])" (2 6 font-lock-keyword-face))
95
- ; ; ("(defnm a b)" (2 6 font-lock-keyword-face))
96
- ; ; ("(defnu)" (2 6 font-lock-keyword-face))
97
- ; ; ("(defnc [a])" (2 6 font-lock-keyword-face))
98
- ; ; ("(defna)" (2 6 font-lock-keyword-face))
99
- ; ; ("(deftask a)" (2 8 font-lock-keyword-face))
100
- ; ; ("(defstate a :start \"b\" :stop \"c\")" (2 9 font-lock-keyword-face)))
101
- )
90
+ (" (deftest a (is (= 1 1)))" (2 8 font-lock-keyword-face )))
91
+
92
+ (when-fontifying-it " variable-def-string-with-docstring"
93
+ (" (def foo \" usage\" \" hello\" )"
94
+ (10 16 font-lock-doc-face )
95
+ (18 24 font-lock-string-face ))
96
+
97
+ (" (def foo \" usage\" \" hello\" )"
98
+ (18 24 font-lock-string-face ))
99
+
100
+ (" (def foo \" usage\" \n \" hello\" )"
101
+ (21 27 font-lock-string-face ))
102
+
103
+ (" (def foo \n \" usage\" \" hello\" )"
104
+ (13 19 font-lock-doc-face ))
105
+
106
+ (" (def foo \n \" usage\" \n \" hello\" )"
107
+ (13 19 font-lock-doc-face )
108
+ (24 30 font-lock-string-face ))
109
+
110
+ (" (def test-string\n \" this\\ n\n is\n my\n string\" )"
111
+ (20 24 font-lock-string-face )
112
+ (25 26 font-lock-string-face )
113
+ (27 46 font-lock-string-face )))
114
+
115
+ ; ; TODO: copied from clojure-mode, but failing
116
+ ; ; ("(defne [x y])" (2 6 font-lock-keyword-face))
117
+ ; ; ("(defnm a b)" (2 6 font-lock-keyword-face))
118
+ ; ; ("(defnu)" (2 6 font-lock-keyword-face))
119
+ ; ; ("(defnc [a])" (2 6 font-lock-keyword-face))
120
+ ; ; ("(defna)" (2 6 font-lock-keyword-face))
121
+ ; ; ("(deftask a)" (2 8 font-lock-keyword-face))
122
+ ; ; ("(defstate a :start \"b\" :stop \"c\")" (2 9 font-lock-keyword-face))
123
+ )
0 commit comments