[SVN] Re: [PATCH] Ruby Grammar: Distinguish augmented assignment	operator from indented here-doc
    James Gray 
    james at grayproductions.net
       
    Wed Jan 21 17:43:30 UTC 2009
    
    
  
On Jan 21, 2009, at 10:49 AM, Martin Kühl wrote:
> the Ruby grammar states that the `<<` operator and `<<-`-style
> here-docs could always be distinguished. To augment (ha!) its
> behaviour in this respect, I added a negative lookahead after the
> pattern matching the `<<` operator so it could never match a `<<-`
> here-doc.
I don't think this patch is OK.
<<- isn't always a heredoc.  For example:
   >> a = [ ]
   => []
   >> a<<-1
   => [-1]
James Edward Gray II
    
    
More information about the textmate-dev
mailing list