mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -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
|
(property_identifier) @property
|
||||||
(shorthand_property_identifier) @property
|
(shorthand_property_identifier) @property
|
||||||
|
(private_property_identifier) @property
|
||||||
|
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
name: (object_pattern
|
name: (object_pattern
|
||||||
|
|
@ -46,7 +47,7 @@
|
||||||
(generator_function_declaration
|
(generator_function_declaration
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
(method_definition
|
(method_definition
|
||||||
name: (property_identifier) @method)
|
name: [(property_identifier) (private_property_identifier)] @method)
|
||||||
|
|
||||||
(pair
|
(pair
|
||||||
key: (property_identifier) @method
|
key: (property_identifier) @method
|
||||||
|
|
@ -86,7 +87,7 @@
|
||||||
|
|
||||||
(call_expression
|
(call_expression
|
||||||
function: (member_expression
|
function: (member_expression
|
||||||
property: (property_identifier) @method))
|
property: [(property_identifier) (private_property_identifier)] @method))
|
||||||
|
|
||||||
; Variables
|
; Variables
|
||||||
;----------
|
;----------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue