summaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/clojure/test.clj
blob: ab9e46d9a2ca59db68de207866e69433d6737c53 (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
; ^ include
;    ^ namespace

 ; asdf
;^^^^^^ comment

 #_ abc
;^^^^^^ comment

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

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

 &
;^ parameter

 ->abc
;^^^^^ constructor

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

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

(.method)
;^^^^^^^ method

(.-field)
;^^^^^^^ field

 Abc/method
;^^^^^^^^^^ field

(Abc/method)
;^^^^^^^^^^ method

 Abc
;^^^ type

 abc.
;^^^^ type

 ^abc
;^ punctuation.special