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

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 `:`.
This commit is contained in:
Joseph T. Lyons 2025-02-23 23:11:22 -05:00 committed by GitHub
parent ee280b0d05
commit 535ba75bc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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