diff options
| author | Noah <noah.bogart@hey.com> | 2023-08-27 03:25:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-27 10:25:43 +0300 |
| commit | e942c720acf44c5c19338ffd57185e9e0e027227 (patch) | |
| tree | 5478c0a7884eac7b1fd58b7ec1b82e0d8e28f1eb /tests/query/highlights/clojure | |
| parent | Update parsers: bash, doxygen, wing (diff) | |
| download | nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar.gz nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar.bz2 nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar.lz nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar.xz nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.tar.zst nvim-treesitter-e942c720acf44c5c19338ffd57185e9e0e027227.zip | |
fix(clojure): fix field highlighting (#5319)
Diffstat (limited to 'tests/query/highlights/clojure')
| -rw-r--r-- | tests/query/highlights/clojure/test.clj | 52 |
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 |
