summary refs log tree commit diff stats
path: root/compiler/pas2nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-09-26 02:22:22 +0200
committerAraq <rumpf_a@web.de>2012-09-26 02:22:22 +0200
commitca447be43ea6fd0537c4c74bb653fb2abbfb0177 (patch)
treeebcceedb361d5b26c5328ee57cdac45fd8f2e88a /compiler/pas2nim
parent92b0d640180c02489061eada2cb585f05e61eebc (diff)
downloadNim-ca447be43ea6fd0537c4c74bb653fb2abbfb0177.tar.gz
bugfix: c2nim and pas2nim work again
Diffstat (limited to 'compiler/pas2nim')
-rwxr-xr-xcompiler/pas2nim/pasparse.nim5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/pas2nim/pasparse.nim b/compiler/pas2nim/pasparse.nim
index da716c621..61d57dec3 100755
--- a/compiler/pas2nim/pasparse.nim
+++ b/compiler/pas2nim/pasparse.nim
@@ -1346,10 +1346,13 @@ proc parseRoutine(p: var TParser): PNode =
   skipCom(p, result)
   expectIdent(p)
   addSon(result, identVis(p))
-  addSon(result, ast.emptyNode)         # generic parameters
+  # patterns, generic parameters:
+  addSon(result, ast.emptyNode)
+  addSon(result, ast.emptyNode)   
   addSon(result, parseParamList(p))
   opt(p, pxSemicolon)
   addSon(result, parseRoutineSpecifiers(p, noBody))
+  addSon(result, ast.emptyNode)
   if (p.section == seInterface) or noBody: 
     addSon(result, ast.emptyNode)
   else: