126e7593b2
resource_api names title-pattern captures with `Regexp.new(pattern).names`, which counts only real named groups. w10k matched `(?<name>` anywhere in the source, so an escaped paren, a character class or a comment added names puppet never emits. - scan patterns as Onigmo does: escapes, nested character classes, `(?#...)` and extended-mode comments hold no groups; names stay unique in first-appearance order - skip a pattern whose names or back references fall outside what w10k models (Unicode or hyphenated names, `\g`, forward `\k`) - bump gentypes.Version to 14 Reviewed-on: #20 Co-authored-by: unkin-agent <unkin-agent@unkin.net> Co-committed-by: unkin-agent <unkin-agent@unkin.net>