[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-core
Subject:    Re: Parsing bug?
From:       "Kirill A. Shutemov" <k.shutemov () sam-solutions ! net>
Date:       2005-01-26 8:12:53
Message-ID: 022e9fdcd0db9c63cfbcc768a2ce6840  - () pc152
[Download RAW message or body]


On Tue, Jan 25, 2005 at 06:14:41AM +0900, George Ogata wrote:
> Hello,
> 
> Should this be a syntax error?
> 
>   case ''
>   when String: 1
>   end
> 
> Works with a ' ' before the ':'.

It's happen because parser think that 'String:' is a tLABEL. It's bug I
think.

-- 
Kirill A. Shutemov				Belarus, Minsk
E-mail:	k.shutemov (AT) sam-solutions.net
JID: kas (AT) altlinux.org
ICQ: 152302675

[Attachment #3 (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic