Adjacent scalars should always be coalesced
hamishknight opened this issue ยท 0 comments
hamishknight commented
This applies to the DSL, for example:
let r3 = Regex {
"๐จ" as UnicodeScalar
"\u{200D}" as UnicodeScalar
"๐จ" as UnicodeScalar
"\u{200D}" as UnicodeScalar
"๐ง" as UnicodeScalar
"\u{200D}" as UnicodeScalar
"๐ฆ" as UnicodeScalar
}
should match "๐จโ๐จโ๐งโ๐ฆ"
, but currently doesn't. It also applies to custom character classes in regex literals, e.g [e\u{301}]
should match e\u{301}
, but currently doesn't.
rdar://96942688