Krikri::PythonPattern::Scan
The scan result: the PCRE2-ready pattern, the first Python-re error the scan can state exactly (nil when none), and the two positions python_pcre_error needs when PCRE2 itself rejects the pattern: the innermost unterminated '(' and the '[' of an unterminated character class, both in ORIGINAL pattern coordinates. Each \u/\U rewrite is remembered as {output char index, output length, source char index} so PCRE2 error positions can be mapped back through it.
Constructors
Instance methods
clone
Sourcecopy_with(translated _translated = @translated, error _error = @error, unclosed_paren _unclosed_paren = @unclosed_paren, open_class_start _open_class_start = @open_class_start, rewrites _rewrites = @rewrites)
Sourceerror
open_class_start
rewrites
translated
unclosed_paren