Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Do not indent on enter in python comments ending in colon (#25437)

Joseph T. Lyons535ba75bc795
diff --git a/crates/languages/src/python/config.toml b/crates/languages/src/python/config.toml
index 0b12f4b5f02..836059bf964 100644
--- a/crates/languages/src/python/config.toml
+++ b/crates/languages/src/python/config.toml
@@ -15,5 +15,5 @@ brackets = [
]
auto_indent_using_last_non_empty_line = false
-increase_indent_pattern = ":\\s*$"
+increase_indent_pattern = "^[^#].*:\\s*$"
decrease_indent_pattern = "^\\s*(else|elif|except|finally)\\b.*:"