DOUBLEQUOTEDIDENTIFIER top-level property
Implementation
final Parser<IdentifierParser> DOUBLEQUOTEDIDENTIFIER =
(char('"') & (ESC | char('"').neg()).star() & char('"')).map((value) {
final middleValue = value[1]
.map((e) => e is Token
? e.value.contains('u') as bool
? utf8.decode(
[int.parse(e.value.split('u').last as String, radix: 16)])
: e.value.replaceAll(r'\\', r'\')
: e == r'\'
? ''
: e)
.join('');
return IdentifierParser('"', middleValue);
});