From 7d8af25d5828e67f10c0f5a75abf9ee8fc02a9bb Mon Sep 17 00:00:00 2001 From: cooldome Date: Wed, 17 Apr 2019 10:55:41 +0100 Subject: revert parser stmtListExpr (#11007) * 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 --- tests/macros/ttryparseexpr.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/macros') diff --git a/tests/macros/ttryparseexpr.nim b/tests/macros/ttryparseexpr.nim index d1084937b..fc0ee61d0 100644 --- a/tests/macros/ttryparseexpr.nim +++ b/tests/macros/ttryparseexpr.nim @@ -1,5 +1,5 @@ discard """ - outputsub: '''Error: expression expected, but found '[EOF]' -- 45''' + outputsub: '''Error: expression expected, but found '[EOF]' 45''' """ # feature request #1473 @@ -9,7 +9,6 @@ macro test(text: string): untyped = try: result = parseExpr(text.strVal) except ValueError: - echo text result = newLit getCurrentExceptionMsg() const @@ -18,4 +17,4 @@ const b = test("valid") c = test("\"") # bug #2504 -echo a, " -- ", b +echo a, " ", b -- cgit 1.4.1-2-gfad0