private void ParsePostQuantifier(int lastEntityIndex, bool possessive) {
int c = Peek();
if (c == '+') {
// nested possessive quantifiers not directly supported by Regex:
Skip();
_sb.Insert(lastEntityIndex, possessive ? "(?>" : "(?:");
Append(')');
if (!possessive) {
Append('+');
}
} else if (c == '?') {
Skip();
Append('?');
}
}