Merge pull request #323 from nathunsmitty/master

Rename @function.method to @method
This commit is contained in:
Steven Sojka 2020-08-18 06:53:27 -05:00 committed by GitHub
commit 761faf23b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,22 +35,22 @@
(function_declaration
name: (identifier) @function)
(method_definition
name: (property_identifier) @function.method)
name: (property_identifier) @method)
(pair
key: (property_identifier) @function.method
key: (property_identifier) @method
value: (function))
(pair
key: (property_identifier) @function.method
key: (property_identifier) @method
value: (arrow_function))
(assignment_expression
left: (member_expression
property: (property_identifier) @function.method)
property: (property_identifier) @method)
right: (arrow_function))
(assignment_expression
left: (member_expression
property: (property_identifier) @function.method)
property: (property_identifier) @method)
right: (function))
(variable_declarator
@ -75,7 +75,7 @@
(call_expression
function: (member_expression
property: (property_identifier) @function.method))
property: (property_identifier) @method))
; Variables
;----------