aboutsummaryrefslogtreecommitdiffstats
path: root/queries/clojure/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'queries/clojure/highlights.scm')
-rw-r--r--queries/clojure/highlights.scm16
1 files changed, 8 insertions, 8 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm
index a070b7ffd..69b9abd9d 100644
--- a/queries/clojure/highlights.scm
+++ b/queries/clojure/highlights.scm
@@ -59,28 +59,28 @@
; Inline function variables
((sym_lit) @variable.builtin
- (#match? @variable.builtin "^[%]"))
+ (#lua-match? @variable.builtin "^%%"))
; Constructor
((sym_lit) @constructor
- (#match? @constructor "^-\\>[^\\>].*"))
+ (#lua-match? @constructor "^-\\>[^\\>].*"))
; Dynamic variables
((sym_lit) @variable.builtin
- (#match? @variable.builtin "^[*].+[*]$"))
+ (#lua-match? @variable.builtin "^[*].+[*]$"))
; Gensym
;; Might not be needed
((sym_lit) @variable
- (#match? @variable "^.*#$"))
+ (#lua-match? @variable "^.*#$"))
; Types
;; TODO: improve?
((sym_lit) @type
- (#match? @type "^[A-Z][^/]*$"))
+ (#lua-match? @type "^[%u][^/]*$"))
;; Symbols with `.` but not `/`
((sym_lit) @type
- (#match? @type "^[^/]+[.][^/]*$"))
+ (#lua-match? @type "^[^/]+[.][^/]*$"))
; Interop
((sym_lit) @method
@@ -88,11 +88,11 @@
((sym_lit) @field
(#match? @field "^\\.-"))
((sym_lit) @field
- (#match? @field "^[A-Z].*/.+"))
+ (#lua-match? @field "^[%u].*/.+"))
(list_lit
.
(sym_lit) @method
- (#match? @method "^[A-Z].*/.+"))
+ (#lua-match? @method "^[%u].*/.+"))
;; TODO: Special casing for the `.` macro
; Operators