fix line continuation parsing ... again

This commit is contained in:
Oswald Buddenhagen
2009-08-14 10:15:26 +02:00
parent 475a141356
commit 7f50d949a9

View File

@@ -507,8 +507,11 @@ bool ProFileEvaluator::Private::read(ProFile *pro, QTextStream *ts)
*ptr++ = c;
getNext:
if (cur == end)
if (cur == end) {
if (!quote && !parens)
goto flushItem;
break;
}
c = *cur++;
}
} else { // doSplit
@@ -534,6 +537,7 @@ bool ProFileEvaluator::Private::read(ProFile *pro, QTextStream *ts)
m_proitem.resize(ptr - (ushort *)m_proitem.unicode());
putSpace = !m_proitem.isEmpty();
} else {
flushItem:
updateItem(ptr);
putSpace = false;
}