From: Stefano Crocco Date: 2007-01-29T05:57:35+09:00 Subject: Re: Ruby << is ambiguos Alle 21:50, domenica 28 gennaio 2007, Neville Franks ha scritto: > Hi, I working on syntax highlighting for ED4W and have problem with << > because it has three uses. > > 1. << operator > 2. << HERE Doc > 3. class << Name - Singleton Class > > The problem is determining if << starts a Here Doc. It is easy to handle > class< the following: > > Ared = "mary" > angy = "bill" > angy < print < > Thanks. > > --- > Neville Franks, http://www.getsoft.com http://www.surfulater.com Some editors (kate and vim, for example) assume the presence of a whitespace after the << in the operator case: a=[] s="abc" #this gets highlighted as a HERE Doc a<