mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -04:00
ecma: highlight private properties and methods
This commit is contained in:
parent
1f68918e09
commit
801c7f0b48
1 changed files with 3 additions and 2 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
(property_identifier) @property
|
||||
(shorthand_property_identifier) @property
|
||||
(private_property_identifier) @property
|
||||
|
||||
(variable_declarator
|
||||
name: (object_pattern
|
||||
|
|
@ -46,7 +47,7 @@
|
|||
(generator_function_declaration
|
||||
name: (identifier) @function)
|
||||
(method_definition
|
||||
name: (property_identifier) @method)
|
||||
name: [(property_identifier) (private_property_identifier)] @method)
|
||||
|
||||
(pair
|
||||
key: (property_identifier) @method
|
||||
|
|
@ -86,7 +87,7 @@
|
|||
|
||||
(call_expression
|
||||
function: (member_expression
|
||||
property: (property_identifier) @method))
|
||||
property: [(property_identifier) (private_property_identifier)] @method))
|
||||
|
||||
; Variables
|
||||
;----------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue