Skip to content

typescript: Use @type instead of @type.builtin in highlights#46068

Merged
gaauwe merged 1 commit intomainfrom
typescript-built-in-type-highlighting
Jan 5, 2026
Merged

typescript: Use @type instead of @type.builtin in highlights#46068
gaauwe merged 1 commit intomainfrom
typescript-built-in-type-highlighting

Conversation

@gaauwe
Copy link
Contributor

@gaauwe gaauwe commented Jan 5, 2026

Closes #45251

In #44532 the syntax highlighting of JS/TS was improved, but we only used type.builtin for a specific case. This resulted in less consistent syntax highlighting. Not all themes have this specific token and we don't use type.builtin in other places either, so while this is a little less specific it is more consistent.

Release Notes:

  • Improved syntax highlighting consistency for builtins in JavaScript and TypeScript

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Jan 5, 2026
@gaauwe gaauwe changed the title Use @type instead of @type.builtin in highlights typescript: Use @type instead of @type.builtin in highlights Jan 5, 2026
@gaauwe gaauwe merged commit e7474ce into main Jan 5, 2026
25 checks passed
@gaauwe gaauwe deleted the typescript-built-in-type-highlighting branch January 5, 2026 11:13
rtfeldman pushed a commit that referenced this pull request Jan 5, 2026
Closes #45251

In #44532 the syntax
highlighting of JS/TS was improved, but we only used `type.builtin` for
a specific case. This resulted in less consistent syntax highlighting.
Not all themes have this specific token and we don't use `type.builtin`
in other places either, so while this is a little less specific it is
more consistent.

Release Notes:

- Improved syntax highlighting consistency for builtins in JavaScript
and TypeScript
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ustries#46068)

Closes zed-industries#45251

In zed-industries#44532 the syntax
highlighting of JS/TS was improved, but we only used `type.builtin` for
a specific case. This resulted in less consistent syntax highlighting.
Not all themes have this specific token and we don't use `type.builtin`
in other places either, so while this is a little less specific it is
more consistent.

Release Notes:

- Improved syntax highlighting consistency for builtins in JavaScript
and TypeScript
LivioGama pushed a commit to LivioGama/zed that referenced this pull request Jan 20, 2026
…ustries#46068)

Closes zed-industries#45251

In zed-industries#44532 the syntax
highlighting of JS/TS was improved, but we only used `type.builtin` for
a specific case. This resulted in less consistent syntax highlighting.
Not all themes have this specific token and we don't use `type.builtin`
in other places either, so while this is a little less specific it is
more consistent.

Release Notes:

- Improved syntax highlighting consistency for builtins in JavaScript
and TypeScript
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Same symbol different color

1 participant