fix a parsing regression (do is still mandatory in some situations)

This commit is contained in:
Zahary Karadjov 2017-04-14 15:01:27 +03:00
commit 8de19a7f4c
2 changed files with 20 additions and 1 deletions

View file

@ -371,6 +371,17 @@ StmtList
StmtList
DiscardStmt
Empty
Call
DotExpr
Ident !"result"
Ident !"add"
BracketExpr
Call
Ident !"quote"
StmtList
DiscardStmt
Empty
IntLit 0
'''
"""
@ -495,3 +506,8 @@ dumpTree:
else:
discard
# some edge cases
result.add((quote do:
discard
)[0])