diff options
| author | Oliver Marshall <olivershawmarshall@gmail.com> | 2021-06-16 19:22:31 +0100 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-07-19 16:24:01 +0000 |
| commit | 2bba92dfb000fcb4fb7f8eb452424c790cf4e6b5 (patch) | |
| tree | 0720480cbf5c4ed46bcf4eff32c2e806155bf5cd /queries/clojure/highlights.scm | |
| parent | de5641a24620af5a70fafbef51b0ad3a00ac92b6 (diff) | |
Use ignored capture groups
Diffstat (limited to 'queries/clojure/highlights.scm')
| -rw-r--r-- | queries/clojure/highlights.scm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/queries/clojure/highlights.scm b/queries/clojure/highlights.scm index 243a641a..7003ef8a 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 . |
