Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix tree sitter python try statement to accept missing else/except/finally (#33431)
Smit Barmase175343240675
diff --git a/Cargo.lock b/Cargo.lockindex b8e734478ae..f50842dddc3 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.tomlindex da2ed94ac44..22377ccb406 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.mdindex 2848884316f..05f1491ca73 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)