Commit 63c012a2 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Fixed: token separators.

parent 4c7e3ed8
......@@ -699,9 +699,16 @@ void Preprocessor::preprocess(const QByteArray &fileName, const QByteArray &sour
const unsigned endOfPreviousToken = (_dot - 1)->end();
const unsigned beginOfToken = _dot->begin();
const char *it = _source.constBegin() + endOfPreviousToken;
const char *start = _source.constBegin() + endOfPreviousToken;
const char *end = _source.constBegin() + beginOfToken;
const char *it = end - 1;
for (; it != start - 1; --it) {
if (*it == '\n')
break;
}
++it;
for (; it != end; ++it) {
if (std::isspace(*it))
_result->append(*it);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment