mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -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
|
(private_property_identifier) @variable.member
|
||||||
|
|
||||||
(variable_declarator
|
(object_pattern
|
||||||
name:
|
(shorthand_property_identifier_pattern) @variable)
|
||||||
(object_pattern
|
|
||||||
(shorthand_property_identifier_pattern))) @variable
|
(object_pattern
|
||||||
|
(object_assignment_pattern
|
||||||
|
(shorthand_property_identifier_pattern) @variable))
|
||||||
|
|
||||||
; Special identifiers
|
; Special identifiers
|
||||||
;--------------------
|
;--------------------
|
||||||
|
|
@ -138,6 +140,17 @@
|
||||||
(call_expression
|
(call_expression
|
||||||
(identifier) @attribute))
|
(identifier) @attribute))
|
||||||
|
|
||||||
|
(decorator
|
||||||
|
"@" @attribute
|
||||||
|
(member_expression
|
||||||
|
(property_identifier) @attribute))
|
||||||
|
|
||||||
|
(decorator
|
||||||
|
"@" @attribute
|
||||||
|
(call_expression
|
||||||
|
(member_expression
|
||||||
|
(property_identifier) @attribute)))
|
||||||
|
|
||||||
; Literals
|
; Literals
|
||||||
;---------
|
;---------
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue