while1 grammar rule cleanup

Closes #172
This commit is contained in:
rocky
2018-04-27 10:57:27 -04:00
parent c0022ed5b7
commit f1e48fb60a
6 changed files with 7 additions and 6 deletions

View File

@@ -19,10 +19,15 @@ while 1:
while 1:
if __name__:
while 1:
if y:
if __name__:
break
raise RuntimeError
elif __file__:
x = 2
else:
raise RuntimeError
# Degenerate case. Note: we can't run becase this causes an infinite loop.
# Suggested in issue #172
while 1:
pass