summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-06-14 12:05:36 +0200
committerAraq <rumpf_a@web.de>2011-06-14 12:05:36 +0200
commitadbb48fbcecd82e60c3a25ee006baa0aa5dd7b10 (patch)
treed775f8bb8c5e839ce839876f9aff8400a536919c /compiler
parentade67f1abcc29402b489e9f5940036276878fb18 (diff)
downloadNim-adbb48fbcecd82e60c3a25ee006baa0aa5dd7b10.tar.gz
bugfix: endless loop in parser; added sphinx wrapper
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/parser.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/parser.nim b/compiler/parser.nim
index 627f564ea..4b7ba97ad 100755
--- a/compiler/parser.nim
+++ b/compiler/parser.nim
@@ -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 =