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:
parent
43832f8e57
commit
7d8af25d58
4 changed files with 11 additions and 52 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue