Files
Nim/tests/macros
Jake Leahy 0bd4d80238 Allow parseAll to parse statements separated by semicolons (#23088)
Fixes the second issue listed in #9918.

Fixed by replacing the logic used in `parseAll` with just a continious
loop to `complexOrSimpleStmt` like what the [normal parser
does](https://github.com/nim-lang/Nim/blob/devel/compiler/passes.nim#L143-L146).
`complexOrSimpleStmt` [guarantees
progress](https://github.com/nim-lang/Nim/blob/devel/compiler/parser.nim#L2541)
so we don't need to check progress ourselves.

Also allows `nimpretty` to parse more valid Nim code such as 
```nim
proc foo(); # Would complain about indention here
# ...
proc foo() = 
  # ...
```
2023-12-17 09:01:00 +01:00
..
2019-05-29 22:21:51 +02:00
2021-04-02 11:56:30 +02:00
2019-02-06 22:31:36 -06:00
2020-10-30 15:53:45 +01:00
2023-04-11 09:37:53 +02:00
2023-12-15 07:48:34 +01:00
2023-12-15 07:48:34 +01:00
2017-07-25 09:28:23 +02:00
2023-12-15 07:48:34 +01:00
2016-12-20 22:42:25 +01:00
2020-09-16 21:37:23 +02:00
2019-09-27 07:02:54 +02:00
2019-11-06 14:35:45 +01:00
2019-05-21 21:31:40 +02:00
2019-05-30 11:13:29 +02:00
2017-07-25 09:28:23 +02:00
2020-08-27 15:50:59 +02:00
2020-07-14 16:44:56 +02:00
2017-07-25 09:28:23 +02:00
2017-07-25 09:28:23 +02:00
2018-12-11 21:23:25 +01:00
2019-01-13 17:19:36 +01:00
2018-01-18 11:40:18 +01:00
2017-07-25 09:28:23 +02:00