typescript-ts-mode: Highlight non-shorthand destructuring bindings

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Highlight non-shorthand
variable bindings in object destructuring.
This commit is contained in:
Dmitry Gutov 2023-02-25 03:54:31 +02:00
parent a795c51f60
commit c92360c7a3

View file

@ -272,7 +272,9 @@ Argument LANGUAGE is either `typescript' or `tsx'."
:language language
:feature 'pattern
`((pair_pattern
key: (property_identifier) @font-lock-property-ref-face)
key: (property_identifier) @font-lock-property-ref-face
value: [(identifier) @font-lock-variable-name-face
(assignment_pattern left: (identifier) @font-lock-variable-name-face)])
(array_pattern (identifier) @font-lock-variable-name-face)