# Improve TS/TSX/JS syntax highlighting for parameters, types, and punctuation \(\#43437\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/9364d3948709ff6902fe7a80bdb7286a29eeb7bc)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 9364d3948709ff6902fe7a80bdb7286a29eeb7bc

Requested commit: 9364d3948709ff6902fe7a80bdb7286a29eeb7bc

Commit: 9364d3948709ff6902fe7a80bdb7286a29eeb7bc

Tree: ba0a6fe69700efcd972a1b9bfea1a92d881e1e15

Author: Clay Tercek

Committer: GitHub

## Message

```
Improve TS/TSX/JS syntax highlighting for parameters, types, and punctuation (#43437)

This pull request enhances syntax highlighting for JavaScript,
TypeScript, TSX, and JSDoc by adding more precise rules for parameters,
types, and punctuation.

- Added queries for highlighting parameters (`@variable.parameter`)
- Expanded highlighting for type identifiers, type aliases, interfaces,
classes
- Extended/implemented types to improve distinction between different
type constructs (`@type`, `@type.class`)
- Added highlighting for punctuation in type parameters, unions,
intersections, annotations, index signatures, optional fields, and
predicates (`@punctuation.special`, `@punctuation.bracket`)
- Added highlighting for identifiers in JSDoc comments
(`@variable.jsdoc`)

Release Notes:

- Refined syntax highlighting in JavaScript and TypeScript for better
visual distinction of
  types, parameters, and JSDoc elements
```

## Parents

- [f16913400a737a2075fe6f4cbceec4782cab61c6](https://git.cafe/gitcafe/zed/commit/f16913400a737a2075fe6f4cbceec4782cab61c6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/9364d3948709ff6902fe7a80bdb7286a29eeb7bc?format=markdown)
