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:
parent
aef869e74f
commit
68e68dfeef
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user