diff --git a/src_v2/parser/parser_internals.nim b/src_v2/parser/parser_internals.nim index a37c984..d127c9b 100644 --- a/src_v2/parser/parser_internals.nim +++ b/src_v2/parser/parser_internals.nim @@ -135,7 +135,8 @@ proc ignore*(parserFn: parserFnT): parserFnT {.inline.} = )) proc manyUntil*(acceptFn: parserFnT, stopFn: parserFnT): parserFnT {.inline.} = - ## Parse characters but throw success tokens away + ## Creates parser function with a nested `acceptFn` parser function until the `stopFn` parserFunction is met: + ## Parses until the `stopFn` is reached or on an errror. return proc(parser: Parser): ParserResult = var res: ParserResult = parser.ok() while res.isOk() and res.flatMap(stopFn).isErr():