Skip to content

Commit

Permalink
Do not indent on enter in python comments ending in colon (zed-indust…
Browse files Browse the repository at this point in the history
…ries#25437)

Closes zed-industries#25416

Release Notes:

- Fixed a bug where indentation was applied when adding a newline to a
Python comment ending in `:`.
  • Loading branch information
JosephTLyons authored Feb 24, 2025
1 parent ee280b0 commit 535ba75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/languages/src/python/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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.*:"

0 comments on commit 535ba75

Please sign in to comment.