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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user