mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -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
|
|
@ -118,11 +118,12 @@
|
|||
"role" @keyword
|
||||
role: (type_role) @keyword.modifier)
|
||||
|
||||
(hole) @character.special
|
||||
|
||||
; `_` wildcards in if-then-else and case-of expressions,
|
||||
; as well as record updates and operator sections
|
||||
(wildcard) @variable.parameter
|
||||
[
|
||||
"_"
|
||||
(hole)
|
||||
] @character.special
|
||||
|
||||
; ----------------------------------------------------------------------------
|
||||
; Functions and variables
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue