File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -1244,7 +1244,16 @@ struct ExpressionParser {
1244
1244
rhs = String ( pattern [ range. rhs. startPosition..< range. rhs. endPosition] )
1245
1245
}
1246
1246
1247
- let substitution = [ " {{getChar(prev)}} " : #"" \#( lhs) ""# , " {{getChar(next)}} " : #"" \#( rhs) ""# ]
1247
+ let lhscharcode = lhs. unicodeScalars. map { String ( format: " U+%X " , $0. value) } . joined ( separator: " " )
1248
+ let rhscharcode = rhs. unicodeScalars. map { String ( format: " U+%X " , $0. value) } . joined ( separator: " " )
1249
+
1250
+ let substitution = [
1251
+ " {{getChar(prev)}} " : #"" \#( lhs) ""# ,
1252
+ " {{getChar(next)}} " : #"" \#( rhs) ""# ,
1253
+ " {{prev.code}} " : #"" \#( lhscharcode) ""# ,
1254
+ " {{next.code}} " : #"" \#( rhscharcode) ""# ,
1255
+ " {{getInsensitive()}} " : " Case \( modes. i ? " in " : " " ) sensitive "
1256
+ ]
1248
1257
1249
1258
tokens. append (
1250
1259
Token (
You can’t perform that action at this time.
0 commit comments