diff --git a/crates/languages/src/typescript/highlights.scm b/crates/languages/src/typescript/highlights.scm index e38467626fe475aa21bd7a62e8735dbd55320bfe..8ec3ec26cca805c65d68d9df08037102a32494dc 100644 --- a/crates/languages/src/typescript/highlights.scm +++ b/crates/languages/src/typescript/highlights.scm @@ -98,18 +98,34 @@ (statement_block) @nested ]))) +; Inline type imports: import { type Foo } or import { type Foo as Bar } (import_specifier "type" name: (identifier) @type +) + +(import_specifier + "type" alias: (identifier) @type ) +; Full type imports: import type { Foo } or import type { Foo as Bar } (import_statement "type" (import_clause (named_imports (import_specifier name: (identifier) @type + ) + ) + ) +) + +(import_statement + "type" + (import_clause + (named_imports + (import_specifier alias: (identifier) @type ) )