Forgot to add "x" as a multiplication sign as well.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28922 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -154,7 +154,7 @@ class Tokenizer {
|
||||
TOKEN_CONSTANT);
|
||||
fCurrentToken.value = temp.String();
|
||||
|
||||
} else if (isalpha(*fCurrentChar)) {
|
||||
} else if (isalpha(*fCurrentChar) && *fCurrentChar != 'x') {
|
||||
|
||||
const char* begin = fCurrentChar;
|
||||
while (*fCurrentChar != 0 && (isalpha(*fCurrentChar)
|
||||
@@ -177,6 +177,7 @@ class Tokenizer {
|
||||
type = TOKEN_MINUS;
|
||||
break;
|
||||
case '*':
|
||||
case 'x':
|
||||
type = TOKEN_STAR;
|
||||
break;
|
||||
case '/':
|
||||
|
||||
Reference in New Issue
Block a user