# Improve Python syntax highlighting \(\#25331\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 59a153b2e182b6da082d86ad9601a875074934cf

Requested commit: 59a153b2e182b6da082d86ad9601a875074934cf

Commit: 59a153b2e182b6da082d86ad9601a875074934cf

Tree: 0f7b03c1344792006ce8977a3228f933e83d0856

Author: chbk

Committer: GitHub

## Message

````
Improve Python syntax highlighting (#25331)

Release Notes:

  - Improved Python syntax highlighting.

| Zed 0.174.6 | With this PR |
| --- | --- |
|
![Image](https://github.com/user-attachments/assets/3d8830c9-23cd-437d-88a6-258bcfba5f50)
|
![Image](https://github.com/user-attachments/assets/fd34ca38-c105-4f27-9979-98ab8d616c51)
|

- `identifier`: `variable`
- `.`, `,`, `:`: `punctuation.delimiter`
- `@`: `operator`, for matrix multiplication

```python
class Mat(list):
  def __matmul__(self, b):
    ...
a, b = Mat(), Mat()
identifier = a @ b
IDENTIFIER = True
```

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
````

## Parents

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

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