From: Ed Sinjiashvili Date: 2002-05-31T13:22:30+09:00 Subject: Re: Ruby Syntax Highlighting (and a Ruby Parser BUG) Lothar Scholz writes: > situation right. If you replace the string "mystring" with the string > ")}mystring" so that the line becomes > > print "String #{ ($a={1=>2, 2=> "})mystring" , 4=>6}).length }" > > the parser signals a syntax error. This is a RUBY (1.6.7) bug. 1.6.7 parser will handle this: print "String #{ ($a={1=>2, 2=> "\})mystring" , 4=>6}).length }" > The more time i spend with this terrible ruby syntax the more i think IMO, syntax is not terrible at all - it's just the current parser implementation being crippled a little. I'm sure it will be cleaned up soon. I don't think that you should handle special cases > it should be cleaned up from all this special cases that saves you > (in the best case) not more then 4 keystrokes. > > And finally a question: > > What do you expect from editor syntax highlighting ? > > Until now i believed heuristics are evil, because the different colors > are there to show you errors immediately. But with this ruby example > i'm not sure any more. And i don't think that any of the other ruby > tools are working correctly.