metagn
aa8715afde
fix stmtlist expression indent regression ( #24883 )
...
follows up #24855
Before #24855 , the test would work because the indentation of the `;`
token would be passed to `semiStmtList` and so its indentation of `-1`
would be used. Now the `;` token is skipped and the indentation of the
first `discard` is used which is > -1. However the second discard has an
indentation of -1 because it's on the same line: this fails the
`sameInd(p) or realInd(p)` check since -1 is never >= the indent of the
first discard.
For compatibility with the parser up to this point this indent check is
entirely removed, meaning the indent is ignored. Because the `;` is
basically never on a separate line, this was already the case for
basically every use. `semiStmtList` is wrapped in a `withInd` anyway
which resets the indent after it's done, since the entire statement list
is wrapped in a `()`. To disallow dedents, the above check could be
fixed to use `sameOrNoInd` instead of `sameInd`, which is done in the
commented version of this check.
(cherry picked from commit 3d14381473 )
2025-04-17 17:33:04 +02:00
..
2025-01-14 07:46:40 +01:00
2024-03-18 20:27:00 +01:00
2023-08-06 14:26:21 +02:00
2023-12-15 10:20:57 +01:00
2025-04-14 10:52:41 +02:00
2024-04-10 14:41:16 +02:00
2024-04-16 12:46:59 +02:00
2024-07-12 15:23:09 +02:00
2023-10-11 17:44:14 +02:00
2023-08-06 14:26:21 +02:00
2024-09-27 11:12:39 +02:00
2025-04-02 09:42:57 +02:00
2025-04-02 09:42:57 +02:00
2022-09-28 15:05:01 +02:00
2022-11-30 21:51:13 +01:00
2024-08-28 20:46:36 +02:00
2025-03-13 12:27:51 +01:00
2024-07-12 15:23:09 +02:00
2024-07-12 15:23:09 +02:00
2025-04-09 07:54:34 +02:00
2025-03-18 08:49:45 +01:00
2025-03-18 15:17:49 +01:00
2025-01-14 07:53:29 +01:00
2025-01-14 07:46:40 +01:00
2025-04-16 09:09:08 +02:00
2024-03-28 11:04:12 +01:00
2025-04-14 10:52:50 +02:00
2023-06-18 16:06:14 +02:00
2025-04-14 10:51:31 +02:00
2025-01-14 07:47:13 +01:00
2017-01-07 22:35:09 +01:00
2022-06-10 20:40:08 +02:00
2023-10-29 14:48:11 +01:00
2025-04-02 09:43:12 +02:00
2023-08-06 14:26:21 +02:00
2025-01-14 07:47:19 +01:00
2023-12-17 18:43:52 +01:00
2023-11-20 21:12:13 +01:00
2025-01-14 07:46:40 +01:00
2025-01-14 07:46:40 +01:00
2024-08-28 20:46:36 +02:00
2025-03-25 09:41:23 +01:00
2023-10-29 14:48:11 +01:00
2023-10-29 14:48:11 +01:00
2023-10-29 14:48:11 +01:00
2025-01-14 07:46:40 +01:00
2023-09-01 06:41:39 +02:00
2023-10-29 14:48:11 +01:00
2025-01-15 10:18:58 +01:00
2020-06-01 19:21:41 +02:00
2025-04-14 11:27:15 +02:00
2024-06-04 09:50:35 +02:00
2023-12-15 08:13:25 +01:00
2025-01-15 10:21:20 +01:00
2025-01-14 07:50:41 +01:00
2023-12-13 10:29:58 +01:00
2025-04-16 09:09:08 +02:00
2025-03-10 09:51:05 +01:00
2023-12-13 10:39:10 +01:00
2023-12-15 08:13:25 +01:00
2025-04-17 17:32:57 +02:00
2025-01-14 07:46:40 +01:00
2025-03-13 12:27:44 +01:00
2025-01-14 07:34:32 +01:00
2025-03-25 09:44:55 +01:00
2025-04-14 10:52:41 +02:00
2025-01-14 07:46:40 +01:00
2021-01-12 09:36:51 +01:00
2025-01-14 07:46:40 +01:00
2024-07-09 09:29:45 +02:00
2024-04-05 08:54:48 +02:00
2025-01-14 07:35:36 +01:00
2024-01-05 08:17:08 +01:00
2025-01-14 07:45:59 +01:00
2024-09-16 20:45:00 +02:00
2025-01-14 07:46:40 +01:00
2025-01-15 10:20:18 +01:00
2024-07-17 18:25:19 +02:00
2023-12-15 08:13:25 +01:00
2023-12-15 08:13:25 +01:00
2024-04-10 14:41:16 +02:00
2023-10-29 14:48:11 +01:00
2023-10-29 14:48:11 +01:00
2025-01-14 07:46:40 +01:00
2023-10-29 14:48:11 +01:00
2024-08-12 15:33:26 +02:00
2023-04-17 20:55:22 +02:00
2025-04-04 10:08:30 +02:00
2025-04-14 10:52:50 +02:00
2023-08-06 14:26:21 +02:00
2025-01-14 07:34:32 +01:00
2024-09-03 09:18:38 +02:00
2025-04-17 17:33:04 +02:00
2022-08-24 09:44:16 +02:00
2025-01-14 07:51:55 +01:00
2023-10-29 14:48:11 +01:00
2025-04-14 10:52:41 +02:00
2025-04-14 10:52:50 +02:00
2023-03-03 07:36:38 +01:00
2023-10-29 14:48:11 +01:00
2018-05-27 19:19:12 +02:00
2025-04-14 10:53:01 +02:00
2023-10-29 14:48:11 +01:00
2024-04-10 14:41:16 +02:00
2024-09-03 09:19:52 +02:00
2023-07-02 22:36:05 +02:00
2025-04-14 10:52:41 +02:00
2023-10-29 14:48:11 +01:00
2025-04-14 10:52:41 +02:00
2023-11-06 18:33:28 +01:00
2023-08-10 14:26:40 +02:00
2020-09-11 01:04:07 +02:00
2023-10-29 14:48:11 +01:00
2025-04-14 10:51:15 +02:00
2025-04-14 10:52:56 +02:00
2025-04-14 10:51:15 +02:00
2025-04-14 10:53:07 +02:00
2025-03-03 14:10:49 +01:00
2025-03-13 12:27:37 +01:00
2025-01-14 12:15:59 +01:00
2025-01-14 07:46:40 +01:00
2025-03-03 14:11:32 +01:00
2025-04-14 10:51:15 +02:00
2025-01-15 10:19:40 +01:00
2025-01-14 07:46:40 +01:00
2025-04-14 10:51:08 +02:00
2025-03-03 14:06:13 +01:00
2022-12-11 16:58:50 +01:00
2025-01-31 09:37:31 +01:00
2025-03-10 09:51:05 +01:00
2025-03-10 09:51:05 +01:00
2024-08-16 06:33:43 +02:00
2025-04-14 10:52:56 +02:00
2023-11-20 21:12:13 +01:00
2025-01-14 07:46:40 +01:00
2024-03-16 08:35:18 +08:00
2025-01-14 07:46:40 +01:00
2024-05-08 09:10:48 -06:00
2024-03-15 18:20:10 +01:00
2024-04-10 14:41:16 +02:00
2023-08-10 14:26:40 +02:00
2025-04-04 10:08:49 +02:00
2025-04-14 10:52:41 +02:00
2023-10-29 14:48:11 +01:00
2025-01-14 09:08:13 +01:00
2025-04-14 10:53:01 +02:00
2023-10-29 14:48:11 +01:00
2024-08-20 11:57:47 +02:00
2025-04-14 10:52:41 +02:00
2023-12-12 16:54:50 +01:00
2025-03-03 14:02:03 +01:00
2025-01-14 07:46:40 +01:00
2025-04-17 17:32:01 +02:00
2023-08-10 14:26:40 +02:00
2024-04-10 14:41:16 +02:00
2025-04-04 10:08:49 +02:00
2023-10-29 14:48:11 +01:00
2025-01-14 12:24:00 +01:00
2023-12-25 07:12:54 +01:00