revert parser stmtListExpr (#11007)

* Revert "Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)"

This reverts commit 862897dc0f.

* redo fix for #4035

* render stmtlistExpr using semicolon

* Revert "render stmtlistExpr using semicolon"

This reverts commit cafb78b8d5b125b5f6ba94248377a1433b3138cb.

* revert test
This commit is contained in:
cooldome 2019-04-17 10:55:41 +01:00 • committed by Andreas Rumpf
commit 7d8af25d58
4 changed files with 11 additions and 52 deletions

View file

@ -31,16 +31,6 @@
- `getImpl` on a `var` or `let` symbol will now return the full `IdentDefs`
tree from the symbol declaration instead of just the initializer portion.
- it is now possible to use statement list expressions after keywords with
indentation: raise, return, discard, yield. This helps parsing code produced
by Nim template expansion where stmtListExpr can appear in place of any expression.
Example:
```nim
raise
var e = new(Exception)
e.msg = "My Exception msg"
e
```
- To use multi-methods, explicit `--multimethods:on` is now needed.