summary refs log tree commit diff stats
path: root/tests/macros
diff options
context:
space:
mode:
authorcooldome <cdome@bk.ru>2019-03-18 10:09:49 +0000
committerAndreas Rumpf <rumpf_a@web.de>2019-03-18 11:09:49 +0100
commit862897dc0f122e374c0e4d44770ffcd8825e51e3 (patch)
treec92794e887760bc44be045a46a3182f093a027e5 /tests/macros
parentc19cd14fc96cfdc77c98e90adeb4e1eb8b5d9b26 (diff)
downloadNim-862897dc0f122e374c0e4d44770ffcd8825e51e3.tar.gz
Support for stmtListExpr in parser after major keywords. Scaled down version. (#10852)
* Support for stmtListExpr in parser after major keywords
* fixes #4035
Diffstat (limited to 'tests/macros')
-rw-r--r--tests/macros/ttryparseexpr.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/macros/ttryparseexpr.nim b/tests/macros/ttryparseexpr.nim
index 54442b662..d1084937b 100644
--- a/tests/macros/ttryparseexpr.nim
+++ b/tests/macros/ttryparseexpr.nim
@@ -1,5 +1,5 @@
 discard """
-  outputsub: '''Error: invalid indentation 45'''
+  outputsub: '''Error: expression expected, but found '[EOF]' -- 45'''
 """
 
 # feature request #1473
@@ -9,6 +9,7 @@ macro test(text: string): untyped =
   try:
     result = parseExpr(text.strVal)
   except ValueError:
+    echo text
     result = newLit getCurrentExceptionMsg()
 
 const
@@ -17,4 +18,4 @@ const
   b = test("valid")
   c = test("\"") # bug #2504
 
-echo a, " ", b
+echo a, " -- ", b