From: Yukihiro Matsumoto Date: 2005-02-08T00:46:59+09:00 Subject: Re: 'when (cond):' causes SyntaxError Hi, In message "Re: 'when (cond):' causes SyntaxError" on Mon, 7 Feb 2005 23:19:21 +0900, nobu.nokada@softhome.net writes: |> A bug. | |A patch, to separate EXPR_BEG to 2 cases; beginning of |expression a) which must be a pure value and b) which may not. Wow, huge patch. I think a simple one like this would work. matz. --- parse.y 5 Jan 2005 08:00:48 -0000 1.366 +++ parse.y 7 Feb 2005 15:41:03 -0000 @@ -6410,4 +6409,3 @@ parser_yylex(parser) - if (lex_state == EXPR_BEG || - lex_state == EXPR_ARG || + if (lex_state == EXPR_ARG || lex_state == EXPR_CMDARG) {