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:
parent
a795c51f60
commit
c92360c7a3
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue