aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/clojure/test.clj
blob: 7401019e83695474de2f0d603f51f0e94ffd406c (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
(ns test {:clj-kondo/ignore true})
; <- @punctuation.bracket
; ^ @keyword.import
;    ^ @module

 ; asdf
;^^^^^^ @comment

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

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

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

 abc#
;^^^^ @variable

 &
;^ @variable.parameter

 ->abc
;^^^^^ @constructor

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

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

 .method
;^^^^^^^ @function.method

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

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

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

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

 Abc
;^^^ @type

 abc.
;^^^^ @type

 ^abc
;^ @punctuation.special

^java.io.File file
; <- @punctuation.special
;^^^^^^^^^^^^ @type
;             ^^^^ @variable

^java.io.File java.io.File.
; <- @punctuation.special
;^^^^^^^^^^^^ @type
;             ^^^^ @variable

^java.io.File file.
; <- @punctuation.special
;^^^^^^^^^^^^ @type
;             ^^^^ @variable

(^java.io.File file)
;^ @punctuation.special
; ^^^^^^^^^^^^ @type
;              ^^^^ @function.call

(^java.io.File .file foo)
;^ @punctuation.special
; ^^^^^^^^^^^^ @type
;              ^^^^ @function.method
;                    ^^^@variable

(^java.io.File .-file foo)
;^ @punctuation.special
; ^^^^^^^^^^^^ @type
;              ^^^^ @variable.member
;                     ^^^@variable

(^java.io.File Abc/method foo)
;^ @punctuation.special
; ^^^^^^^^^^^^ @type
;              ^^^^^^^^^^ @function.method
;                         ^^^ @variable

 (defn foo [arg1] (+ arg1 1))
;^         ^    ^ ^        ^^ @punctuation.bracket
; ^^^^ @keyword.function
;      ^^^ @function
;           ^^^^     ^^^^ @variable
;                  ^ @operator
;                         ^ @number

 clojure.core/dfn
;^^^^^^^^^^^^^^^^ @variable

 clojure.core/defn
;^^^^^^^^^^^^^^^^ @keyword.function

 any-ns/defn
;^^^^^^^^^^^ @keyword.function