Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/ecma/highlights.scm')
| -rw-r--r-- | runtime/queries/ecma/highlights.scm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/queries/ecma/highlights.scm b/runtime/queries/ecma/highlights.scm index 67052596..4ba74a4b 100644 --- a/runtime/queries/ecma/highlights.scm +++ b/runtime/queries/ecma/highlights.scm @@ -161,7 +161,7 @@ ; Function and method definitions ;-------------------------------- -(function +(function_expression name: (identifier) @function) (function_declaration name: (identifier) @function) @@ -172,27 +172,27 @@ (pair key: (property_identifier) @function.method - value: [(function) (arrow_function)]) + value: [(function_expression) (arrow_function)]) (pair key: (private_property_identifier) @function.method.private - value: [(function) (arrow_function)]) + value: [(function_expression) (arrow_function)]) (assignment_expression left: (member_expression property: (property_identifier) @function.method) - right: [(function) (arrow_function)]) + right: [(function_expression) (arrow_function)]) (assignment_expression left: (member_expression property: (private_property_identifier) @function.method.private) - right: [(function) (arrow_function)]) + right: [(function_expression) (arrow_function)]) (variable_declarator name: (identifier) @function - value: [(function) (arrow_function)]) + value: [(function_expression) (arrow_function)]) (assignment_expression left: (identifier) @function - right: [(function) (arrow_function)]) + right: [(function_expression) (arrow_function)]) ; Function and method parameters ;------------------------------- |