js-ts-mode: Highlight function parameters inside destructuring
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Highlight function parameters declared using destructuring syntax.
This commit is contained in:
parent
4a72f13bdf
commit
dc9b733ab8
1 changed files with 4 additions and 1 deletions
|
@ -3545,7 +3545,10 @@ Check if a node type is available, then return the right indent rules."
|
||||||
(method_definition
|
(method_definition
|
||||||
name: (property_identifier) @font-lock-function-name-face)
|
name: (property_identifier) @font-lock-function-name-face)
|
||||||
|
|
||||||
(formal_parameters (identifier) @font-lock-variable-name-face)
|
(formal_parameters
|
||||||
|
[(identifier) @font-lock-variable-name-face
|
||||||
|
(array_pattern (identifier) @font-lock-variable-name-face)
|
||||||
|
(object_pattern (shorthand_property_identifier_pattern) @font-lock-variable-name-face)])
|
||||||
|
|
||||||
(variable_declarator
|
(variable_declarator
|
||||||
name: (identifier) @font-lock-variable-name-face)
|
name: (identifier) @font-lock-variable-name-face)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue