1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-23 07:19:15 +00:00

Improve fontification consistency in js-ts-mode (bug#60503)

* lisp/progmodes/js.el (js--treesit-font-lock-settings): Highlight
declared parameters in functions, methods and arrow-expressions as
variables.
This commit is contained in:
Jostein Kjønigsen 2023-01-02 21:26:36 +01:00 committed by Yuan Fu
parent aef869e74f
commit 68e68dfeef
No known key found for this signature in database
GPG Key ID: 56E19BC57664A442

View File

@ -3521,6 +3521,15 @@ This function is intended for use in `after-change-functions'."
(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)