void () { assertCurrentToken(PyTokenTypes.RAISE_KEYWORD); final SyntaxTreeBuilder.Marker raiseStatement = myBuilder.mark(); myBuilder.advanceLexer(); if (!getEndOfStatementsTokens().contains(myBuilder.getTokenType())) { getExpressionParser().parseSingleExpression(false); if (myBuilder.getTokenType() == PyTokenTypes.COMMA) { myBuilder.advanceLexer(); getExpressionParser().parseSingleExpression(false); if (myBuilder.getTokenType() == PyTokenTypes.COMMA) { myBuilder.advanceLexer(); getExpressionParser().parseSingleExpression(false); } } else if (myBuilder.getTokenType() == PyTokenTypes.FROM_KEYWORD) { myBuilder.advanceLexer(); if (!getExpressionParser().parseSingleExpression(false)) { myBuilder.error(PyParsingBundle.message("PARSE.expected.expression")); } } } checkEndOfStatement(); raiseStatement.done(PyElementTypes.RAISE_STATEMENT); }