parseText method
Text =
$^,"\n\r
*
;
Implementation
String? parseText(State<String> state) {
String? $0;
// $[^,"\n\r]*
final $2 = state.pos;
for (var c = 0;
state.pos < state.input.length &&
(c = state.input.runeAt(state.pos)) == c &&
(!(c < 13 ? c == 10 : c <= 13 || c == 34 || c == 44));
// ignore: curly_braces_in_flow_control_structures, empty_statements
state.pos += c > 0xffff ? 2 : 1);
state.setOk(true);
if (state.ok) {
$0 = state.input.substring($2, state.pos);
}
return $0;
}