Improve fontification for import-statements in typescript-ts-mode

(bug#60689)

* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--font-lock-settings): Add rules to highlight the
actual imports in import-statements.
This commit is contained in:
Jostein Kjønigsen 2023-01-09 11:17:53 +01:00 committed by Yuan Fu
parent 28dd602138
commit e385c099b8
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -197,7 +197,10 @@ Argument LANGUAGE is either `typescript' or `tsx'."
value: (array (number) (function)))
(catch_clause
parameter: (identifier) @font-lock-variable-name-face))
parameter: (identifier) @font-lock-variable-name-face)
(import_clause (identifier) @font-lock-variable-name-face)
(import_clause (named_imports (import_specifier (identifier)) @font-lock-variable-name-face)))
:language language
:override t