* lisp/progmodes/js.el (js--treesit-font-lock-settings):
Highlight parameters in a function expression (the node type
'function'). Make the matcher for 'formal_parameters' independent
of the parent, that just created duplication.
(method_definition
name: (property_identifier) @font-lock-function-name-face)
- (method_definition
- parameters: (formal_parameters (identifier) @font-lock-variable-name-face))
-
- (arrow_function
- parameters: (formal_parameters (identifier) @font-lock-variable-name-face))
-
- (function_declaration
- parameters: (formal_parameters (identifier) @font-lock-variable-name-face))
+ (formal_parameters (identifier) @font-lock-variable-name-face)
(variable_declarator
name: (identifier) @font-lock-variable-name-face)