Find a file
Jeff Brennan c20cbba0eb
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>
2025-12-15 17:11:07 +01:00
.cargo ci: Update typos versions and fix new occurrences (#40784) 2025-10-21 10:43:22 +00:00
.cloudflare
.config ci: Run slow tests first (#40769) 2025-10-21 09:58:26 +02:00
.github Add keymap field to bug report issue template (#44564) 2025-12-12 11:17:15 +00:00
.zed Remove agent1 code (#40495) 2025-10-17 18:49:11 +02:00
assets Add adjustments to agent v2 pane changes (#44885) 2025-12-15 13:02:01 -03:00
ci Move Nightly release to gh-workflow (#41349) 2025-10-28 13:57:23 -06:00
crates python: Add SQL syntax highlighting (#43756) 2025-12-15 17:11:07 +01:00
docs python: Add SQL syntax highlighting (#43756) 2025-12-15 17:11:07 +01:00
extensions proto: Bump to v0.3.0 (#44866) 2025-12-15 11:51:18 +00:00
legal Fix the markdown table (#38729) 2025-09-23 16:49:45 +00:00
nix nix: Fix nix build failure due to missing protoc (#44412) 2025-12-08 16:08:36 +00:00
script Disable word completions in markdown and plaintext files (#44654) 2025-12-11 20:15:38 +00:00
tooling Allow triggering after release workflow manually (#44671) 2025-12-11 16:54:10 -07:00
.clinerules Initial .rules file for agent with symlinks for other rules file paths (#29014) 2025-04-17 23:41:23 +00:00
.cursorrules Initial .rules file for agent with symlinks for other rules file paths (#29014) 2025-04-17 23:41:23 +00:00
.git-blame-ignore-revs Add PR 15352 to .git-blame-ignore-revs (#30870) 2025-05-17 11:35:58 +00:00
.gitattributes windows: Make sure zed.sh using the correct line ending (#37650) 2025-09-05 16:25:55 +00:00
.gitignore nix: Fix nix build failure due to missing protoc (#44412) 2025-12-08 16:08:36 +00:00
.mailmap Update .mailmap (#30874) 2025-05-17 12:34:42 +00:00
.prettierrc ci: Add check for formatting default.json (#30034) 2025-05-06 18:55:26 +00:00
.rules Fix small spelling mistakes (#38284) 2025-09-16 21:58:40 +00:00
.windsurfrules Initial .rules file for agent with symlinks for other rules file paths (#29014) 2025-04-17 23:41:23 +00:00
Cargo.lock vim: Add scroll keybindings for the OutlinePanel (#42438) 2025-12-15 15:40:37 +00:00
Cargo.toml Kick off agent v2 (#44190) 2025-12-15 10:14:15 +00:00
CLAUDE.md Initial .rules file for agent with symlinks for other rules file paths (#29014) 2025-04-17 23:41:23 +00:00
clippy.toml Fix shell welcome prompt showing up in Zed's stdout (#41311) 2025-10-27 20:04:36 +00:00
CODE_OF_CONDUCT.md
compose.yml Remove PostgREST (#41299) 2025-10-27 13:27:59 -04:00
CONTRIBUTING.md Mention pure style changes in the contributing docs (#39096) 2025-09-29 11:02:47 +00:00
debug.plist
default.nix Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
docker-compose.sql
Dockerfile-collab collab: Don't run migrations on startup (#44430) 2025-12-08 21:46:52 +00:00
Dockerfile-collab.dockerignore
Dockerfile-cross.dockerignore
Dockerfile-distros
Dockerfile-distros.dockerignore
flake.lock Bump Rust to 1.91.1 (#42561) 2025-11-12 20:27:04 +00:00
flake.nix nix: Add job names and garnix substitutor (#31625) 2025-05-28 13:32:12 -07:00
GEMINI.md Add missing GEMINI.md rule file for gemini-cli (#38885) 2025-10-02 09:47:29 -04:00
LICENSE-AGPL Update license year (#24191) 2025-02-04 09:02:59 -05:00
LICENSE-APACHE Update license year (#24191) 2025-02-04 09:02:59 -05:00
LICENSE-GPL
livekit.yaml
lychee.toml ci: Check for broken links (#30844) 2025-06-06 09:39:35 +00:00
Procfile Update instructions for local collaboration (#35689) 2025-08-06 11:10:28 -07:00
Procfile.web Remove PostgREST (#41299) 2025-10-27 13:27:59 -04:00
README.md Update CI badge in README (#42394) 2025-11-10 22:05:46 +00:00
renovate.json Remove workspace-hack (#40216) 2025-10-17 18:58:14 +00:00
REVIEWERS.conl Add git team to git in REVIEWERS.conl (#41841) 2025-12-02 20:40:26 +00:00
rust-toolchain.toml Bump Rust to 1.91.1 (#42561) 2025-11-12 20:27:04 +00:00
shell.nix Fix nix build (#26270) 2025-03-10 01:06:11 -07:00
typos.toml proto: Add two language servers and change used grammar (#44440) 2025-12-15 11:54:08 +01:00

Zed

Zed CI

Welcome to Zed, a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.


Installation

On macOS, Linux, and Windows you can download Zed directly or install Zed via your local package manager.

Other platforms are not yet available:

Developing Zed

Contributing

See CONTRIBUTING.md for ways you can contribute to Zed.

Also... we're hiring! Check out our jobs page for open roles.

Licensing

License information for third party dependencies must be correctly provided for CI to pass.

We use cargo-about to automatically comply with open source licenses. If CI is failing, check the following:

  • Is it showing a no license specified error for a crate you've created? If so, add publish = false under [package] in your crate's Cargo.toml.
  • Is the error failed to satisfy license requirements for a dependency? If so, first determine what license the project has and whether this system is sufficient to comply with this license's requirements. If you're unsure, ask a lawyer. Once you've verified that this system is acceptable add the license's SPDX identifier to the accepted array in script/licenses/zed-licenses.toml.
  • Is cargo-about unable to find the license for a dependency? If so, add a clarification field at the end of script/licenses/zed-licenses.toml, as specified in the cargo-about book.