mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -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
|
; 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
|
||||||
.
|
.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue