@@ -221,48 +221,48 @@ POS."
221
221
(clojure-test-with-temp-buffer " (_c4/defconstrainedfn bar [] nil)"
222
222
(should (eq (clojure-test-face-at 2 4 ) 'font-lock-type-face ))
223
223
(should (eq (clojure-test-face-at 5 5 ) 'default ))
224
- (should (eq (clojure-test-face-at 6 18 ) 'font-lock-keyword -face ))
224
+ (should (eq (clojure-test-face-at 6 18 ) 'clojure-def-symbol -face ))
225
225
(should (eq (clojure-test-face-at 23 25 ) 'font-lock-function-name-face )))
226
226
(clojure-test-with-temp-buffer " (clo/defbar foo nil)"
227
227
(should (eq (clojure-test-face-at 2 4 ) 'font-lock-type-face ))
228
228
(should (eq (clojure-test-face-at 5 5 ) 'default ))
229
- (should (eq (clojure-test-face-at 6 11 ) 'font-lock-keyword -face ))
229
+ (should (eq (clojure-test-face-at 6 11 ) 'clojure-def-symbol -face ))
230
230
(should (eq (clojure-test-face-at 13 15 ) 'font-lock-function-name-face ))))
231
231
232
232
(ert-deftest clojure-mode-syntax-table/variable-def ()
233
233
:tags '(fontification syntax-table)
234
234
(clojure-test-with-temp-buffer " (def foo 10)"
235
- (should (eq (clojure-test-face-at 2 4 ) 'font-lock-keyword -face ))
235
+ (should (eq (clojure-test-face-at 2 4 ) 'clojure-def-symbol -face ))
236
236
(should (eq (clojure-test-face-at 6 8 ) 'font-lock-variable-name-face ))))
237
237
238
238
(ert-deftest clojure-mode-syntax-table/type-def ()
239
239
:tags '(fontification syntax-table)
240
240
(clojure-test-with-temp-buffer " (deftype Foo)"
241
- (should (eq (clojure-test-face-at 2 8 ) 'font-lock-keyword -face ))
241
+ (should (eq (clojure-test-face-at 2 8 ) 'clojure-def-symbol -face ))
242
242
(should (eq (clojure-test-face-at 10 12 ) 'font-lock-type-face ))))
243
243
244
244
(ert-deftest clojure-mode-syntax-table/function-def ()
245
245
:tags '(fontification syntax-table)
246
246
(clojure-test-with-temp-buffer " (defn foo [x] x)"
247
- (should (eq (clojure-test-face-at 2 5 ) 'font-lock-keyword -face ))
247
+ (should (eq (clojure-test-face-at 2 5 ) 'clojure-def-symbol -face ))
248
248
(should (eq (clojure-test-face-at 7 9 ) 'font-lock-function-name-face ))))
249
249
250
250
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars1 ()
251
251
:tags '(fontification syntax-table)
252
252
(clojure-test-with-temp-buffer " (defn* foo [x] x)"
253
- (should (eq (clojure-test-face-at 2 6 ) 'font-lock-keyword -face ))
253
+ (should (eq (clojure-test-face-at 2 6 ) 'clojure-def-symbol -face ))
254
254
(should (eq (clojure-test-face-at 8 10 ) 'font-lock-function-name-face ))))
255
255
256
256
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars2 ()
257
257
:tags '(fontification syntax-table)
258
258
(clojure-test-with-temp-buffer " (defsomething! foo [x] x)"
259
- (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword -face ))
259
+ (should (eq (clojure-test-face-at 2 14 ) 'clojure-def-symbol -face ))
260
260
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
261
261
262
262
(ert-deftest clojure-mode-syntax-table/custom-def-with-special-chars3 ()
263
263
:tags '(fontification syntax-table)
264
264
(clojure-test-with-temp-buffer " (def-something foo [x] x)"
265
- (should (eq (clojure-test-face-at 2 14 ) 'font-lock-keyword -face ))
265
+ (should (eq (clojure-test-face-at 2 14 ) 'clojure-def-symbol -face ))
266
266
(should (eq (clojure-test-face-at 16 18 ) 'font-lock-function-name-face ))))
267
267
268
268
(ert-deftest clojure-mode-syntax-table/fn ()
@@ -274,23 +274,23 @@ POS."
274
274
(ert-deftest clojure-mode-syntax-table/lambda-params ()
275
275
:tags '(fontification syntax-table)
276
276
(clojure-test-with-temp-buffer " #(+ % %2 %3 %&)"
277
- (should (eq (clojure-test-face-at 5 5 ) 'font-lock-variable-name -face ))
278
- (should (eq (clojure-test-face-at 7 8 ) 'font-lock-variable-name -face ))
279
- (should (eq (clojure-test-face-at 10 11 ) 'font-lock-variable-name -face ))
280
- (should (eq (clojure-test-face-at 13 14 ) 'font-lock-variable-name -face ))))
277
+ (should (eq (clojure-test-face-at 5 5 ) 'clojure-lambda-arg -face ))
278
+ (should (eq (clojure-test-face-at 7 8 ) 'clojure-lambda-arg -face ))
279
+ (should (eq (clojure-test-face-at 10 11 ) 'clojure-lambda-arg -face ))
280
+ (should (eq (clojure-test-face-at 13 14 ) 'clojure-lambda-arg -face ))))
281
281
282
282
(ert-deftest clojure-mode-syntax-table/nil ()
283
283
:tags '(fontification syntax-table)
284
- (should (eq (clojure-test-face-at 4 6 " (= nil x)" ) 'font-lock -constant-face ))
285
- (should-not (eq (clojure-test-face-at 3 5 " (fnil x)" ) 'font-lock -constant-face )))
284
+ (should (eq (clojure-test-face-at 4 6 " (= nil x)" ) 'clojure-global -constant-face ))
285
+ (should-not (eq (clojure-test-face-at 3 5 " (fnil x)" ) 'clojure-global -constant-face )))
286
286
287
287
(ert-deftest clojure-mode-syntax-table/true ()
288
288
:tags '(fontification syntax-table)
289
- (should (eq (clojure-test-face-at 4 7 " (= true x)" ) 'font-lock -constant-face )))
289
+ (should (eq (clojure-test-face-at 4 7 " (= true x)" ) 'clojure-global -constant-face )))
290
290
291
291
(ert-deftest clojure-mode-syntax-table/false ()
292
292
:tags '(fontification syntax-table)
293
- (should (eq (clojure-test-face-at 4 8 " (= false x)" ) 'font-lock -constant-face )))
293
+ (should (eq (clojure-test-face-at 4 8 " (= false x)" ) 'clojure-global -constant-face )))
294
294
295
295
(ert-deftest clojure-mode-syntax-table/keyword-meta ()
296
296
:tags '(fontification syntax-table)
0 commit comments