diff options
| author | Dmitry Gutov | 2023-02-25 03:54:31 +0200 |
|---|---|---|
| committer | Dmitry Gutov | 2023-02-25 03:54:31 +0200 |
| commit | c92360c7a3bf8f33d4fe4e7cc351c33ab4a7d5ca (patch) | |
| tree | c710a51c726930b0743c59828c7abf74139644e0 | |
| parent | a795c51f6053272de61bc1721305e3c15ff424ee (diff) | |
| download | emacs-c92360c7a3bf8f33d4fe4e7cc351c33ab4a7d5ca.tar.gz emacs-c92360c7a3bf8f33d4fe4e7cc351c33ab4a7d5ca.zip | |
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.
| -rw-r--r-- | lisp/progmodes/typescript-ts-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index 64af5574f9f..5b49b8f50a8 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el | |||
| @@ -272,7 +272,9 @@ Argument LANGUAGE is either `typescript' or `tsx'." | |||
| 272 | :language language | 272 | :language language |
| 273 | :feature 'pattern | 273 | :feature 'pattern |
| 274 | `((pair_pattern | 274 | `((pair_pattern |
| 275 | key: (property_identifier) @font-lock-property-ref-face) | 275 | key: (property_identifier) @font-lock-property-ref-face |
| 276 | value: [(identifier) @font-lock-variable-name-face | ||
| 277 | (assignment_pattern left: (identifier) @font-lock-variable-name-face)]) | ||
| 276 | 278 | ||
| 277 | (array_pattern (identifier) @font-lock-variable-name-face) | 279 | (array_pattern (identifier) @font-lock-variable-name-face) |
| 278 | 280 | ||