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]; 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.empty() && string[0]=='"'))
string += c; string += c;
else else
@ -214,7 +214,7 @@ CSMFilter::Token CSMFilter::Parser::getNextToken()
case '?': ++mIndex; return Token (Token::Type_OneShot); case '?': ++mIndex; return Token (Token::Type_OneShot);
} }
if (c=='"' || c=='_' || std::isalpha (c)) if (c=='"' || c=='_' || std::isalpha (c) || c==':')
return getStringToken(); return getStringToken();
if (c=='-' || c=='.' || std::isdigit (c)) if (c=='-' || c=='.' || std::isdigit (c))

Loading…
Cancel
Save