boolean () { if (myBuilder.getTokenType() == PyTokenTypes.STATEMENT_BREAK) { myBuilder.advanceLexer(); final boolean indentFound = myBuilder.getTokenType() == PyTokenTypes.INDENT; if (indentFound) { myBuilder.advanceLexer(); while (!myBuilder.eof() && myBuilder.getTokenType() != PyTokenTypes.DEDENT) { if (!parseCaseClause()) { SyntaxTreeBuilder.Marker illegalStatement = myBuilder.mark(); parseStatement(); illegalStatement.error(PyParsingBundle.message("PARSE.expected.case.clause")); } } if (!myBuilder.eof()) { assert myBuilder.getTokenType() == PyTokenTypes.DEDENT; myBuilder.advanceLexer(); } } else { myBuilder.error(PyParsingBundle.message("indent.expected")); return false; } } return true; }