* lisp/progmodes/js.el (js--treesit-font-lock-settings): Highlight
declared parameters in functions, methods and arrow-expressions as
variables.
(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))
+
(variable_declarator
name: (identifier) @font-lock-variable-name-face)