COM_ParseToken_VM_Tokenize
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7257
d7cf8633-e32d-0410-b094-
e92efae38249
*datapointer = data;
return true;
}
- else if (*data == '\n' || *data == ',' || *data == ';')
+ else if (*data == '\n' || *data == '{' || *data == '}' || *data == ')' || *data == '(' || *data == ']' || *data == '[' || *data == ':' || *data == ',' || *data == ';')
{
// single character
com_token[len++] = *data++;
else
{
// regular word
- for (;*data > ' ' && *data != ',' && *data != ';';data++)
+ for (;*data > ' ' && *data != ',' && *data != ';' && *data != '{' && *data != '}' && *data != ')' && *data != '(' && *data != ']' && *data != '[' && *data != ':' && *data != ',' && *data != ';';data++)
{
if (len >= (int)sizeof(com_token) - 1)
{