internal string ParseProperty()
{
if (CharsRight() < 3)
{
throw MakeException(SR.IncompleteSlashP);
}
char ch = MoveRightGetChar();
if (ch != '{')
{
throw MakeException(SR.MalformedSlashP);
}
int startpos = Textpos();
while (CharsRight() > 0)
{
ch = MoveRightGetChar();
if (!(RegexCharClass.IsWordChar(ch) || ch == '-'))
{
MoveLeft();
break;
}
}
string capname = _pattern.Substring(startpos, Textpos() - startpos);
if (CharsRight() == 0 || MoveRightGetChar() != '}')
throw MakeException(SR.IncompleteSlashP);
return capname;
}