aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/clojure/test.clj
blob: 5c9ca649b44cedfe4744c3619cee03d7f154d13a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
(ns test {:clj-kondo/ignore true})
; <- @punctuation.bracket
; ^ @keyword.import
;    ^ @module

 ; asdf
;^^^^^^ @comment

 #_ abc
;^^^^^^ @comment

(func obj)
;^^^^ @function.call
;     ^^^ @variable

 #(+ % %1 %&)
;^ @punctuation.special
;  ^ @function.call
;    ^ ^^ ^^ @variable.builtin

 &
;^ @variable.parameter

 ->abc
;^^^^^ @constructor

 ->>abc
;^^^^^^ @variable

 *1 *2 *3 *e
;^^ ^^ ^^ ^^ @variable.builtin

(.method)
;^^^^^^^ @function.method

(.-field)
;^^^^^^^ @variable.member

 Abc/method
;^^^^^^^^^^ @variable.member

(Abc/method)
;^^^^^^^^^^ @function.method

 Abc
;^^^ @type

 abc.
;^^^^ @type

 ^abc
;^ @punctuation.special