This commit is contained in:
Araq
2015-02-14 18:11:52 +01:00
parent df2fdaf3c5
commit ece23d39bc
2 changed files with 12 additions and 0 deletions

View File

@@ -1597,6 +1597,7 @@ proc parseEnum(p: var TParser): PNode =
optInd(p, result)
while true:
var a = parseSymbol(p)
if a.kind == nkEmpty: return
if p.tok.indent >= 0 and p.tok.indent <= p.currInd:
add(result, a)
break