From e942c720acf44c5c19338ffd57185e9e0e027227 Mon Sep 17 00:00:00 2001 From: Noah Date: Sun, 27 Aug 2023 03:25:43 -0400 Subject: fix(clojure): fix field highlighting (#5319) --- tests/query/highlights/clojure/test.clj | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 tests/query/highlights/clojure/test.clj (limited to 'tests/query') 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 -- cgit v1.2.3-70-g09d2