fix a parsing regression (do is still mandatory in some situations)
This commit is contained in:
parent
03770daba4
commit
8de19a7f4c
2 changed files with 20 additions and 1 deletions
|
|
@ -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])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue