diff options
| author | Noah <noah.bogart@hey.com> | 2024-03-19 17:10:41 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-19 22:10:41 +0100 |
| commit | 03f650705c0c10f97b214ca4ecca3c25ff9bee7d (patch) | |
| tree | 5f38ef0452efb585ba6a6d5eded447e9a1ddcde4 /tests/query | |
| parent | bot(lockfile): update asm, erlang, gleam, html, http, v, wing (diff) | |
| download | nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar.gz nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar.bz2 nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar.lz nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar.xz nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.tar.zst nvim-treesitter-03f650705c0c10f97b214ca4ecca3c25ff9bee7d.zip | |
Update Clojure highlights to be metadata aware (#6213)
Diffstat (limited to 'tests/query')
| -rw-r--r-- | tests/query/highlights/clojure/test.clj | 70 |
1 files changed, 66 insertions, 4 deletions
diff --git a/tests/query/highlights/clojure/test.clj b/tests/query/highlights/clojure/test.clj index 5c9ca649b..7401019e8 100644 --- a/tests/query/highlights/clojure/test.clj +++ b/tests/query/highlights/clojure/test.clj @@ -13,10 +13,14 @@ ;^^^^ @function.call ; ^^^ @variable - #(+ % %1 %&) + #(+ % %1 %& %a) ;^ @punctuation.special ; ^ @function.call ; ^ ^^ ^^ @variable.builtin +; ^^ @variable + + abc# +;^^^^ @variable & ;^ @variable.parameter @@ -30,13 +34,16 @@ *1 *2 *3 *e ;^^ ^^ ^^ ^^ @variable.builtin -(.method) + .method +;^^^^^^^ @function.method + +(.method foo) ;^^^^^^^ @function.method -(.-field) +(.-field foo) ;^^^^^^^ @variable.member - Abc/method + Abc/member ;^^^^^^^^^^ @variable.member (Abc/method) @@ -50,3 +57,58 @@ ^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 |
