Commit 5a343908 authored by Victor Yacovlev's avatar Victor Yacovlev

FS#1162

parent 7b7700fe
...@@ -1927,7 +1927,11 @@ void PDAutomataPrivate::setExtraOpenKeywordError(const QString &kw) ...@@ -1927,7 +1927,11 @@ void PDAutomataPrivate::setExtraOpenKeywordError(const QString &kw)
// Append dummy 'else' block // Append dummy 'else' block
if (currentContext.size()>1 if (currentContext.size()>1
&& currentContext[currentContext.size()-2]->size()>0 && currentContext[currentContext.size()-2]->size()>0
&& currentContext[currentContext.size()-2]->last()->type==AST::StSwitchCaseElse && (
currentContext[currentContext.size()-2]->last()->type==AST::StSwitchCaseElse
||
currentContext[currentContext.size()-2]->last()->type==AST::StIfThenElse
)
) )
{ {
appendLine = false; appendLine = false;
......
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