# python: Add SQL syntax highlighting \(\#43756\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c20cbba0ebb1caf3763d55893c4a11dcc06a2cae

Requested commit: c20cbba0ebb1caf3763d55893c4a11dcc06a2cae

Commit: c20cbba0ebb1caf3763d55893c4a11dcc06a2cae

Tree: c9b9dc87386526fa059c4721e659087a205d69c8

Author: Jeff Brennan

Committer: GitHub

## Message

```
python: Add SQL syntax highlighting (#43756)

Release Notes: 

- Added support for SQL syntax highlighting in Python files

## Summary

I am a data engineer who spends a lot of time writing SQL in Python
files using Zed. This PR adds support for SQL syntax highlighting with
common libraries (like pyspark, polars, pandas) and string variables
(prefixed with a `# sql` comment). I referenced
[#37605](https://github.com/zed-industries/zed/pull/37605) for this
implementation to keep the comment prefix consistent.

## Examples
<img width="738" height="990" alt="image"
src="https://github.com/user-attachments/assets/48a859da-c477-490d-be73-ca70d8e47cc9"
/>

---------

Co-authored-by: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com>
```

## Parents

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

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