bugfix: endless loop in parser; added sphinx wrapper

This commit is contained in:
Araq 2011-06-14 12:05:36 +02:00
commit adbb48fbce
7 changed files with 270 additions and 4 deletions

View file

@ -197,6 +197,7 @@ proc parseSymbol(p: var TParser): PNode =
eat(p, tkAccent)
else:
parMessage(p, errIdentifierExpected, p.tok)
getTok(p) # BUGFIX: We must consume a token here to prevent endless loops!
result = ast.emptyNode
proc indexExpr(p: var TParser): PNode =