From 175343240675a820c63dd57b77bf796a089e646d Mon Sep 17 00:00:00 2001 From: Smit Barmase Date: Thu, 26 Jun 2025 09:48:44 +0530 Subject: [PATCH] Fix tree sitter python try statement to accept missing else/except/finally (#33431) We have fork now: https://github.com/zed-industries/tree-sitter-python/commit/218fcbf3fda3d029225f3dec005cb497d111b35e Release Notes: - N/A --- Cargo.lock | 3 +-- Cargo.toml | 2 +- docs/src/languages/python.md | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b8e734478a..f50842dddc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -16865,8 +16865,7 @@ dependencies = [ [[package]] name = "tree-sitter-python" version = "0.23.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d065aaa27f3aaceaf60c1f0e0ac09e1cb9eb8ed28e7bcdaa52129cffc7f4b04" +source = "git+https://github.com/zed-industries/tree-sitter-python?rev=218fcbf3fda3d029225f3dec005cb497d111b35e#218fcbf3fda3d029225f3dec005cb497d111b35e" dependencies = [ "cc", "tree-sitter-language", diff --git a/Cargo.toml b/Cargo.toml index da2ed94ac4..22377ccb40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -595,7 +595,7 @@ tree-sitter-html = "0.23" tree-sitter-jsdoc = "0.23" tree-sitter-json = "0.24" tree-sitter-md = { git = "https://github.com/tree-sitter-grammars/tree-sitter-markdown", rev = "9a23c1a96c0513d8fc6520972beedd419a973539" } -tree-sitter-python = "0.23" +tree-sitter-python = { git = "https://github.com/zed-industries/tree-sitter-python", rev = "218fcbf3fda3d029225f3dec005cb497d111b35e" } tree-sitter-regex = "0.24" tree-sitter-ruby = "0.23" tree-sitter-rust = "0.24" diff --git a/docs/src/languages/python.md b/docs/src/languages/python.md index 2848884316..05f1491ca7 100644 --- a/docs/src/languages/python.md +++ b/docs/src/languages/python.md @@ -2,7 +2,7 @@ Python support is available natively in Zed. -- Tree-sitter: [tree-sitter-python](https://github.com/tree-sitter/tree-sitter-python) +- Tree-sitter: [tree-sitter-python](https://github.com/zed-industries/tree-sitter-python) - Language Servers: - [microsoft/pyright](https://github.com/microsoft/pyright) - [python-lsp/python-lsp-server](https://github.com/python-lsp/python-lsp-server) (PyLSP)