mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat(highlights): capture wildcard patterns as @character.special (#7153)
This commit is contained in:
parent
2b2ac30232
commit
188b1a6d01
13 changed files with 45 additions and 21 deletions
|
|
@ -4,8 +4,6 @@
|
|||
; and don't override destructured parameters
|
||||
(variable) @variable
|
||||
|
||||
(pattern/wildcard) @variable
|
||||
|
||||
(decl/function
|
||||
patterns: (patterns
|
||||
(_) @variable.parameter))
|
||||
|
|
@ -78,7 +76,6 @@
|
|||
(operator)
|
||||
(constructor_operator)
|
||||
(all_names)
|
||||
(wildcard)
|
||||
"."
|
||||
".."
|
||||
"="
|
||||
|
|
@ -92,6 +89,8 @@
|
|||
"@"
|
||||
] @operator
|
||||
|
||||
(wildcard) @character.special
|
||||
|
||||
(module
|
||||
(module_id) @module)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue