tokenize: "~Base" should generate two tokens. "~" and "Base"
This commit is contained in:
parent
4493400c49
commit
93c04efc95
|
@ -456,6 +456,9 @@ void Tokenizer::tokenizeCode(std::istream &code, const unsigned int FileIndex)
|
||||||
// Append token..
|
// Append token..
|
||||||
CurrentToken += c;
|
CurrentToken += c;
|
||||||
|
|
||||||
|
if ( c == '\n' )
|
||||||
|
++lineno;
|
||||||
|
|
||||||
// Special sequence '\.'
|
// Special sequence '\.'
|
||||||
if (special)
|
if (special)
|
||||||
special = false;
|
special = false;
|
||||||
|
@ -472,7 +475,7 @@ void Tokenizer::tokenizeCode(std::istream &code, const unsigned int FileIndex)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strchr("+-*/%&|^?!=<>[](){};:,.",ch))
|
if (strchr("+-*/%&|^?!=<>[](){};:,.~",ch))
|
||||||
{
|
{
|
||||||
addtoken(CurrentToken.c_str(), lineno, FileIndex);
|
addtoken(CurrentToken.c_str(), lineno, FileIndex);
|
||||||
CurrentToken.clear();
|
CurrentToken.clear();
|
||||||
|
|
Loading…
Reference in New Issue