c2nim compiles again [#9 state:resolved]; better error message for named parameters
This commit is contained in:
parent
f31eab8536
commit
dbc5048a9a
8 changed files with 25 additions and 3 deletions
|
|
@ -279,7 +279,7 @@ proc parsePegLit(p: var TParser): TPeg =
|
|||
if p.tok.xkind != pxStrLit: ExpectIdent(p)
|
||||
try:
|
||||
result = parsePeg(
|
||||
input = if p.tok.xkind == pxStrLit: p.tok.s else: escapePeg(p.tok.s),
|
||||
pattern = if p.tok.xkind == pxStrLit: p.tok.s else: escapePeg(p.tok.s),
|
||||
filename = p.lex.filename,
|
||||
line = p.lex.linenumber,
|
||||
col = col)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue