ruby.el Syntax highlighting error on hash

B

Brian Schroeder

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
 
Y

Yukihiro Matsumoto

Hi,

In message "Re: ruby.el Syntax highlighting error on hash"

|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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top