allow colons in names (filter)

pull/51/head
Marc Zinnschlag 12 years ago
parent 7e02c9acf2
commit d007d4dc9a

@ -92,7 +92,7 @@ CSMFilter::Token CSMFilter::Parser::getStringToken()
{
char c = mInput[mIndex];
if (std::isalpha (c) || c=='_' || (!string.empty() && std::isdigit (c)) || c=='"' ||
if (std::isalpha (c) || c==':' || c=='_' || (!string.empty() && std::isdigit (c)) || c=='"' ||
(!string.empty() && string[0]=='"'))
string += c;
else
@ -214,7 +214,7 @@ CSMFilter::Token CSMFilter::Parser::getNextToken()
case '?': ++mIndex; return Token (Token::Type_OneShot);
}
if (c=='"' || c=='_' || std::isalpha (c))
if (c=='"' || c=='_' || std::isalpha (c) || c==':')
return getStringToken();
if (c=='-' || c=='.' || std::isdigit (c))

Loading…
Cancel
Save