From 2bba92dfb000fcb4fb7f8eb452424c790cf4e6b5 Mon Sep 17 00:00:00 2001 From: Oliver Marshall Date: Wed, 16 Jun 2021 19:22:31 +0100 Subject: Use ignored capture groups --- queries/clojure/highlights.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm index 243a641a5..7003ef8aa 100644 --- a/queries/clojure/highlights.scm +++ b/queries/clojure/highlights.scm @@ -279,8 +279,8 @@ ; Correctly highlight docstrings (list_lit . - (sym_lit) @a ; Don't really want to highlight twice - (#match? @a "^def.*") + (sym_lit) @_keyword ; Don't really want to highlight twice + (#match? @_keyword "^def.*") . (sym_lit) . @@ -291,8 +291,8 @@ ; Funciton definitions (list_lit . - (sym_lit) @a - (#any-of? @a "fn" "fn*" "defn" "defn-") + (sym_lit) @_keyword.function + (#any-of? @_keyword.function "fn" "fn*" "defn" "defn-") . (sym_lit)? @function . -- cgit v1.2.3-70-g09d2