mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 11:06:54 -04:00
fix(perl): correct use of supertypes
This commit is contained in:
parent
d6ebbd5039
commit
c5871d9d87
1 changed files with 28 additions and 6 deletions
|
|
@ -256,15 +256,37 @@
|
|||
; all post deref sigils highlighted as operators, and the unrolly star is a special char
|
||||
(postfix_deref
|
||||
[
|
||||
"$"
|
||||
(scalar_deref_expression
|
||||
"$" @operator
|
||||
"*" @character.special)
|
||||
(array_deref_expression
|
||||
"@" @operator
|
||||
"*" @character.special)
|
||||
(arraylen_deref_expression
|
||||
"$#" @operator
|
||||
"*" @character.special)
|
||||
(hash_deref_expression
|
||||
"%" @operator
|
||||
"*" @character.special)
|
||||
(amper_deref_expression
|
||||
"&" @operator
|
||||
"*" @character.special)
|
||||
(glob_deref_expression
|
||||
"*" @operator
|
||||
"*" @character.special)
|
||||
])
|
||||
|
||||
(slices/slice_expression
|
||||
[
|
||||
arrayref: _
|
||||
hashref: _
|
||||
]
|
||||
[
|
||||
"@"
|
||||
"%"
|
||||
"*"
|
||||
"$#"
|
||||
] @operator
|
||||
"*" @character.special)
|
||||
] @operator)
|
||||
|
||||
(slices
|
||||
(slices/keyval_expression
|
||||
[
|
||||
arrayref: _
|
||||
hashref: _
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue