fix(clojure): fix field highlighting (#5319)

This commit is contained in:
Noah 2023-08-27 03:25:43 -04:00 committed by GitHub
parent dfbba919dd
commit e942c720ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 60 additions and 3 deletions

View file

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