mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-05 13:00:08 -04:00
Update Clojure highlights to be metadata aware (#6213)
This commit is contained in:
parent
567a76780c
commit
03f650705c
2 changed files with 99 additions and 30 deletions
|
|
@ -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
|
||||
|
||||
(.-field)
|
||||
(.method foo)
|
||||
;^^^^^^^ @function.method
|
||||
|
||||
(.-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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue