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

Joseph T. Lyons created

Closes https://github.com/zed-industries/zed/issues/25416

Release Notes:

- Fixed a bug where indentation was applied when adding a newline to a
Python comment ending in `:`.

Change summary

crates/languages/src/python/config.toml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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.*:"