mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Use ignored capture groups
This commit is contained in:
parent
de5641a246
commit
2bba92dfb0
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue