Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
python: Improve handling of triple-quoted strings (#20664)
Piotr Osiewicz49eb865e8aaa
diff --git a/crates/languages/src/python/config.toml b/crates/languages/src/python/config.tomlindex a51a186007e..0b12f4b5f02 100644--- a/crates/languages/src/python/config.toml+++ b/crates/languages/src/python/config.toml@@ -5,6 +5,8 @@ first_line_pattern = '^#!.*\bpython[0-9.]*\b'line_comments = ["# "]autoclose_before = ";:.,=}])>"brackets = [+ { start = "\"\"\"", end = "\"\"\"", close = true, newline = false, not_in = ["string"] },+ { start = "'''", end = "'''", close = true, newline = false, not_in = ["string"] },{ start = "{", end = "}", close = true, newline = true },{ start = "[", end = "]", close = true, newline = true },{ start = "(", end = ")", close = true, newline = true },