aboutsummaryrefslogtreecommitdiffstats
path: root/tests/query/highlights/clojure
diff options
context:
space:
mode:
Diffstat (limited to 'tests/query/highlights/clojure')
-rw-r--r--tests/query/highlights/clojure/test.clj52
1 files changed, 52 insertions, 0 deletions
diff --git a/tests/query/highlights/clojure/test.clj b/tests/query/highlights/clojure/test.clj
new file mode 100644
index 000000000..ab9e46d9a
--- /dev/null
+++ b/tests/query/highlights/clojure/test.clj
@@ -0,0 +1,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