diff --git a/src/parser/parser.nim b/src/parser/parser.nim index f9606e7..2298eea 100644 --- a/src/parser/parser.nim +++ b/src/parser/parser.nim @@ -307,6 +307,7 @@ func choice*(parsers: seq[Parser -> ParserResult]): (Parser -> ParserResult) {.i let prettyErrors = errors.map((x: ParserResult) => x.error().expected) err(ParserError( kind: choiceMismatchErr, + index: parser.state.position + 1, expected: &"Choice ({prettyErrors})", unexpected: errors[0].error().unexpected, parser: parser,