mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat(ecma): highlight decorator and destructuring
This commit is contained in:
parent
817ca60370
commit
baf4581159
1 changed files with 17 additions and 4 deletions
|
|
@ -12,10 +12,12 @@
|
|||
|
||||
(private_property_identifier) @variable.member
|
||||
|
||||
(variable_declarator
|
||||
name:
|
||||
(object_pattern
|
||||
(shorthand_property_identifier_pattern))) @variable
|
||||
(object_pattern
|
||||
(shorthand_property_identifier_pattern) @variable)
|
||||
|
||||
(object_pattern
|
||||
(object_assignment_pattern
|
||||
(shorthand_property_identifier_pattern) @variable))
|
||||
|
||||
; Special identifiers
|
||||
;--------------------
|
||||
|
|
@ -138,6 +140,17 @@
|
|||
(call_expression
|
||||
(identifier) @attribute))
|
||||
|
||||
(decorator
|
||||
"@" @attribute
|
||||
(member_expression
|
||||
(property_identifier) @attribute))
|
||||
|
||||
(decorator
|
||||
"@" @attribute
|
||||
(call_expression
|
||||
(member_expression
|
||||
(property_identifier) @attribute)))
|
||||
|
||||
; Literals
|
||||
;---------
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue