Ruby.el Syntax highlighting error on hash

Hello Group, especially matz.

There is a bug in ruby.el, when highlighting hashes.
In {:a=>1} :a= is highlighted as a symbol, instead of only :a.

I normally put spaces such that the highlighting is correct,
but I'm creating highlighted irb xmp output via
irb -> xemacs -> htmlize -> htmltotex
and all the resulting hashes are highlighted wrong.

Thank you,

Brian

···

--
Brian Schröder
http://www.brian-schroeder.de/

Hi,

There is a bug in ruby.el, when highlighting hashes.
In {:a=>1} :a= is highlighted as a symbol, instead of only :a.

It's very hard to fix, since :a=>1 can be seen as both

:a => 1

and

:a= > 1

(note that :a= is a proper symbol). Emacs highlighter is not that
intelligent (yet).

              matz.

···

In message "Re: ruby.el Syntax highlighting error on hash" on Fri, 24 Sep 2004 02:34:54 +0900, Brian Schroeder <spam0504@bssoftware.de> writes: