Validate every regex literal as Ruby's parser does #22

Open
unkin-agent wants to merge 2 commits from benvin/gentypes-guard-regex into benvin/gentypes-guard-attrnames

2 Commits

Author SHA1 Message Date
unkin-agent f59de880e3 Merge remote-tracking branch 'origin/benvin/gentypes-guard-attrnames' into benvin/gentypes-guard-regex
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
2026-11-10 00:16:23 +11:00
unkin-agent 9b3a1ce2be Validate every regex literal as Ruby's parser does
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
Ruby compiles each non-interpolated regex literal while parsing a file, so an
invalid one fails the file even in a method that never runs. Check every
literal in each loaded file, string interpolations included, with an Onigmo
validator that now covers named groups, back references, POSIX brackets,
\u, \x and \p escapes, atomic and option-only groups, literal braces and
extended mode; anything it cannot prove skips.
2026-11-10 00:03:22 +11:00