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
(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
.