c2nim compiles again

This commit is contained in:
Araq 2011-12-12 19:11:31 +01:00
commit 4487b614e1
5 changed files with 15 additions and 10 deletions

View file

@ -283,7 +283,7 @@ proc parsePegLit(p: var TParser): TPeg =
try:
result = parsePeg(
pattern = if p.tok.xkind == pxStrLit: p.tok.s else: escapePeg(p.tok.s),
filename = p.lex.filename,
filename = p.lex.fileIdx.ToFilename,
line = p.lex.linenumber,
col = col)
getTok(p)