(js--treesit-font-lock-settings): Highlight parameters in function expression
* 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.
This commit is contained in:
parent
ad0f87bb4c
commit
83ed9018ed
1 changed files with 1 additions and 8 deletions
|
@ -3545,14 +3545,7 @@ Check if a node type is available, then return the right indent rules."
|
|||
(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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue