Commit c9a52298 authored by Victor Yacovlev's avatar Victor Yacovlev

Fixed #kumir2-1765

parent f81b07c8
......@@ -343,4 +343,5 @@
"Wrong hex constant";"Плохая 16-ричная константа";"";"";"";"";
"Wrong real number";"Ошибка в записи числа";"";"";"";"";
"Wrong table constant";"";"";"";"";"";
"[ instead of {";"[ вместо {";"";"";"";"";
"kumir2-bc crashed while compiling this module";"Компилятор сломался при попытки сборки этого испонителя";"";"";"";"";
......@@ -3871,6 +3871,10 @@ QList<AST::VariablePtr> SyntaxAnalizer::parseVariables(int statementIndex, Varia
else if (group.lexems[curPos]->type==LxOperRightBrace) {
deepV --;
}
else if (LxOperLeftSqBr == group.lexems[curPos]->type && var->dimension > deepV) {
group.lexems[curPos]->error = _("[ instead of {");
return result;
}
if ( deepV==0 && ( group.lexems[curPos]->type==LxOperComa || group.lexems[curPos]->type==LxOperSemicolon )) {
if (initValue.isEmpty()) {
......
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