Finn Evers
4c28d2c2e2
language: Improve auto-indentation when using round brackets in Python ( #31260 )
...
Follow-up to #29625 and #30902
This PR reintroduces auto-intents for brackets in Python and fixes some
cases where an indentation would be triggered if it should not. For
example, upon typing
```python
a = []
```
and inserting a newline after, the next line would be indented although
it shoud not be.
Bracket auto-indentation was tested prior to #29625 but removed there
and the test updated accordingly. #30902 reintroduced this for all
brackets but `()`. I reintroduced this here, reverted the changes to the
test so that indents also happen after typing `()`. This is frequently
used for tuples and multiline statements in Python.
Release Notes:
- Improved auto-indentation when using round brackets in Python.
2025-05-25 02:25:15 +05:30
..
2025-05-23 14:53:53 +00:00
2025-05-24 01:45:10 +00:00
2025-05-22 21:00:54 +00:00
2025-05-16 05:04:36 -04:00
2025-05-20 23:06:07 +00:00
2025-05-22 16:56:59 -04:00
2025-05-24 02:04:51 +00:00
2025-05-21 09:27:54 +00:00
2025-05-21 09:27:54 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 14:53:53 +00:00
2025-05-20 23:06:07 +00:00
2025-05-08 14:10:30 +00:00
2025-05-22 21:59:23 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 06:13:49 -04:00
2025-05-20 23:06:07 +00:00
2025-05-23 20:02:02 +00:00
2025-05-04 08:28:39 +00:00
2025-05-23 20:02:02 +00:00
2025-05-23 12:08:49 +00:00
2025-04-28 22:15:24 +00:00
2025-05-14 23:29:11 +02:00
2025-05-20 23:06:07 +00:00
2025-05-21 12:51:35 -04:00
2025-05-24 06:52:36 +00:00
2025-05-23 20:45:32 +00:00
2025-05-20 00:20:00 +00:00
2025-05-22 07:24:46 -04:00
2025-05-14 11:15:27 +02:00
2025-05-24 06:52:36 +00:00
2025-05-20 23:06:07 +00:00
2025-05-14 23:29:11 +02:00
2025-05-19 08:16:14 -04:00
2025-05-25 02:25:15 +05:30
2025-05-23 15:03:09 +00:00
2025-05-22 07:24:46 -04:00
2025-05-22 05:48:26 -04:00
2025-05-20 23:06:07 +00:00
2025-05-22 07:24:46 -04:00
2025-05-14 17:22:17 +00:00
2025-05-17 16:42:45 +00:00
2025-05-23 14:53:53 +00:00
2025-05-21 13:07:22 +03:00
2025-05-20 23:06:07 +00:00
2025-05-12 14:43:14 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-07 23:11:09 +03:00
2025-05-20 23:06:07 +00:00
2025-05-23 23:08:59 +00:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 16:55:29 +05:30
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 20:02:02 +00:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-05-17 16:42:45 +00:00
2025-05-17 16:42:45 +00:00
2025-04-23 20:54:09 +00:00
2025-05-25 02:25:15 +05:30
2025-05-08 14:01:39 +02:00
2025-05-24 02:04:51 +00:00
2025-05-23 23:00:35 +00:00
2025-05-20 23:06:07 +00:00
2025-05-14 11:15:27 +02:00
2025-05-25 02:25:15 +05:30
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 23:08:59 +00:00
2025-05-21 12:57:51 -04:00
2025-05-20 23:06:07 +00:00
2025-04-29 21:58:45 -03:00
2025-05-20 23:06:07 +00:00
2025-05-22 14:22:35 -04:00
2025-05-23 12:08:49 +00:00
2025-05-21 21:17:14 +03:00
2025-05-14 23:29:11 +02:00
2025-05-22 14:22:35 -04:00
2025-05-20 23:06:07 +00:00
2025-04-23 12:38:46 -04:00
2025-05-15 22:28:52 +00:00
2025-05-18 20:34:47 +00:00
2025-05-09 13:52:06 +00:00
2025-05-20 23:06:07 +00:00
2025-05-24 20:08:46 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 20:02:02 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 23:08:59 +00:00
2025-05-23 14:53:53 +00:00
2025-05-23 14:53:53 +00:00
2025-05-23 12:08:49 +00:00
2025-05-21 20:23:05 -07:00
2025-05-20 23:06:07 +00:00
2025-05-19 18:06:33 +02:00
2025-05-20 23:06:07 +00:00
2025-05-08 14:36:34 +02:00
2025-05-23 06:13:49 -04:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-04-25 17:41:49 +03:00
2025-05-20 23:06:07 +00:00
2025-04-28 09:21:27 +00:00
2025-05-20 23:06:07 +00:00
2025-05-13 05:28:59 +05:30
2025-05-20 23:06:07 +00:00
2025-05-16 17:35:44 +02:00
2025-05-20 23:06:07 +00:00
2025-05-01 17:37:43 +02:00
2025-05-23 20:45:32 +00:00
2025-05-23 06:13:49 -04:00
2025-05-22 05:48:26 -04:00
2025-05-23 16:55:29 +05:30
2025-05-23 14:28:53 +03:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-05-20 23:06:07 +00:00
2025-04-28 14:29:17 +00:00
2025-05-06 10:18:48 +00:00
2025-05-20 07:56:24 +00:00
2025-05-24 23:36:51 +03:00
2025-05-14 23:29:11 +02:00
2025-05-23 19:31:25 +00:00
2025-05-23 20:45:32 +00:00
2025-05-01 19:24:14 +00:00
2025-05-20 23:06:07 +00:00
2025-04-23 20:54:09 +00:00
2025-04-23 15:30:20 +00:00
2025-05-20 23:06:07 +00:00
2025-05-14 23:29:11 +02:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-05-23 23:08:59 +00:00
2025-05-23 23:08:59 +00:00
2025-05-23 23:08:59 +00:00
2025-05-20 23:06:07 +00:00
2025-04-23 20:54:09 +00:00