Update Clojure highlights to be metadata aware (#6213)

This commit is contained in:
Noah 2024-03-19 17:10:41 -04:00 committed by GitHub
parent 567a76780c
commit 03f650705c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 99 additions and 30 deletions

View file

@ -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