Fixed bug in line numbers and enabled test case that spots it.
This commit is contained in:
parent
7b90246198
commit
de28502bb1
|
@ -354,6 +354,7 @@ void Tokenizer::tokenizeCode(std::istream &code, unsigned int FileIndex)
|
|||
}
|
||||
|
||||
// Has this file been tokenized already?
|
||||
++lineno;
|
||||
bool foundOurfile = false;
|
||||
for (unsigned int i = 0; i < _files.size(); i++)
|
||||
{
|
||||
|
@ -372,7 +373,7 @@ void Tokenizer::tokenizeCode(std::istream &code, unsigned int FileIndex)
|
|||
fileIndexes.push_back(lineno);
|
||||
}
|
||||
|
||||
lineno = 0;
|
||||
lineno = 1;
|
||||
FileIndex = fileIndexes.size() - 1;
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ private:
|
|||
TEST_CASE(varid1);
|
||||
TEST_CASE(varid2);
|
||||
|
||||
// TODO TEST_CASE(file1);
|
||||
TEST_CASE(file1);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue