summary refs log tree commit diff stats
path: root/tests/macros/ttryparseexpr.nim
Commit message (Collapse)AuthorAgeFilesLines
* Allow `parseAll` to parse statements separated by semicolons (#23088)Jake Leahy2023-12-171-0/+4
| | | | | | | | | | | | | | | | | | 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() = # ... ```
* revert parser stmtListExpr (#11007)cooldome2019-04-171-3/+2
| | | | | | | | | | | | | | | | | * Revert "Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)" This reverts commit 862897dc0f122e374c0e4d44770ffcd8825e51e3. * redo fix for #4035 * render stmtlistExpr using semicolon * Revert "render stmtlistExpr using semicolon" This reverts commit cafb78b8d5b125b5f6ba94248377a1433b3138cb. * revert test
* Support for stmtListExpr in parser after major keywords. Scaled down ↵cooldome2019-03-181-2/+3
| | | | | | | version. (#10852) * Support for stmtListExpr in parser after major keywords * fixes #4035
* Remove expr/stmt (#5857)Arne Döring2017-07-251-1/+1
|
* minor lexer cleanups; fixes #2504Araq2015-04-101-0/+1
|
* fixes error propagation for macros.parseExprAraq2014-11-131-2/+4
|
* fixes #1473Araq2014-11-121-0/+17