void () { SyntaxTreeBuilder builder = myContext.getBuilder(); final ParsingScope scope = getParsingContext().getScope(); if (builder.getTokenType() == PyTokenTypes.STATEMENT_BREAK) { builder.advanceLexer(); scope.setAfterSemicolon(false); } else if (builder.getTokenType() == PyTokenTypes.SEMICOLON) { if (!scope.isSuite()) { builder.advanceLexer(); scope.setAfterSemicolon(true); if (builder.getTokenType() == PyTokenTypes.STATEMENT_BREAK) { builder.advanceLexer(); scope.setAfterSemicolon(false); } } } else if (!builder.eof()) { builder.error(PyParsingBundle.message("end.of.statement.expected")); } }