Commit 926d8d2c authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed loop end if ... parsing

parent 66b130c3
......@@ -613,8 +613,10 @@ void searchEndLoopIf(QList<Lexem*> & lexems) {
Lexem * lx = (*it);
Lexem * lxx = 0;
if (lx->type==LxPriEndLoop) {
if (lx->data.contains("_")) {
if (lx->data.contains("_") || lx->data.contains(" ")) {
int underscorePos = lx->data.indexOf("_");
if (underscorePos==-1)
underscorePos = lx->data.indexOf(" ");
QString caseText = lx->data.mid(underscorePos);
lx->data = lx->data.left(underscorePos);
lx->length -= caseText.length();
......
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