Use ignored capture groups

This commit is contained in:
Oliver Marshall 2021-06-16 19:22:31 +01:00 committed by mergify[bot]
parent de5641a246
commit 2bba92dfb0

View file

@ -279,8 +279,8 @@
; Correctly highlight docstrings ; Correctly highlight docstrings
(list_lit (list_lit
. .
(sym_lit) @a ; Don't really want to highlight twice (sym_lit) @_keyword ; Don't really want to highlight twice
(#match? @a "^def.*") (#match? @_keyword "^def.*")
. .
(sym_lit) (sym_lit)
. .
@ -291,8 +291,8 @@
; Funciton definitions ; Funciton definitions
(list_lit (list_lit
. .
(sym_lit) @a (sym_lit) @_keyword.function
(#any-of? @a "fn" "fn*" "defn" "defn-") (#any-of? @_keyword.function "fn" "fn*" "defn" "defn-")
. .
(sym_lit)? @function (sym_lit)? @function
. .