regex problem

Hugh Sasse Staff Elec Eng hgs at
Wed Sep 29 10:56:05 EDT 2004

On Thu, 30 Sep 2004, Gavin Sinclair wrote:

> ===8<==============Original message text===============
> Hi Gavin,
> I just notices a small bug in the syntax highlighting for Ruby - it does
> not highlight a regexp literal if it is after the '=>' symbol in a Hash
> literal.
> Tony.
> ===8<===========End of original message text===========

If someone figures out a fix, I thought I should mention that a Hash
literal needn't include the braces.

irb(main):003:0> p :this => :that
=> nil
irb(main):004:0> p :this => :that, :the => :other
{:the=>:other, :this=>:that}
=> nil

Something I didn't know before reading about rake.

More information about the vim-ruby-devel mailing list