ecma: highlight private properties and methods

This commit is contained in:
numToStr 2021-11-24 16:02:27 +05:30 committed by Stephan Seitz
parent 1f68918e09
commit 801c7f0b48

View file

@ -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
;----------