Files
Nim/lib
Zoom a5afc78638 stdlib: pegs: fix crashes, raise EInvalidPeg instead (#26149)
Fixes for a few crashes, including a runtime underflow, I stumbled upon
while trying some more _inventive_ patterns.

* `primary()`: unary `*` applied to an operand that can match empty
input (!>.*), 'a'?) now pegError()s at pattern-parse time instead of
AssertionDefect "unreachable" from `*`
* `getCharSet()`: unknown builtin/malformed escapes inside charsets
([^\n], [z-\n]) propagate `tkInvalid` instead of reading
`tok.literal[len-1]` of an empty string (IndexDefect)
* rawMatch pkCapture: `{}` with no previous capture is a no-op instead
of a runtime underflow defect
2026-09-02 12:28:27 +02:00
..
2017-02-20 17:24:19 +02:00
2026-07-30 14:54:12 +02:00
2013-03-16 23:53:07 +01:00
2021-06-03 14:00:53 +02:00