# python: Fix highlighting of built-in types for \`isinstance\` and \`issubclass\` \(\#30807\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 21fd1c8b8014e0186e3b33310b268f8bd58a20b3

Requested commit: 21fd1c8b8014e0186e3b33310b268f8bd58a20b3

Commit: 21fd1c8b8014e0186e3b33310b268f8bd58a20b3

Tree: 4f47076fa3f010221255822533e3694ee7276edf

Author: Zsolt Cserna

Committer: GitHub

## Message

```
python: Fix highlighting of built-in types for `isinstance` and `issubclass` (#30807)

When built-in types such as `list` is specified in calls like
`isinstance()`, the parameter is highlighted as a type.
    
The issue is caused by a change which removed `list` and others in
bf9e5b4f761b507310d744553e29ba6fdeb3c89a.
    
This commit makes two special cases for `isinstance` and `issubclass`
ensuring tree sitter to highlight the parameters correctly.

Fixes #30331

Release Notes:

- python: Fixed syntax highlighting for `isinstance()` and
`issubclass()` calls

Co-authored-by: László Vaskó <1771332+vlaci@users.noreply.github.com>
```

## Parents

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

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