void (@NotNull final PsiBuilder b, final int i) { final IElementType tokenType = b.getTokenType(); final IElementType leftElement = b.rawLookup(-1); final IElementType rightElement = b.rawLookup(1); if (leftElement == null || TokenType.WHITE_SPACE.equals(leftElement)) { return; } /* * At '=' position: if no whitespace to left and right, we move to argument. * And we report error if whitespace to the left. */ if (tokenType == CommandLineElementTypes.EQ) { if (leftElement.equals(CommandLineElementTypes.LONG_OPTION_NAME_TOKEN)) { if (rightElement == null || TokenType.WHITE_SPACE.equals(rightElement)) { b.error(PyBundle.message("command.line.parser.error.message")); } b.advanceLexer(); } } }