[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Emacs syntax highlighting error

Daniel Harple

1/12/2006 3:21:00 AM

I am getting an error in GNU Emacs with ruby syntax highlighting.

<<< CODE >>>
foo = "'?"

def blah
end
<<< CODE >>>

The highlighting for the string goes on.

-- Daniel


2 Answers

furlan primus

1/14/2006 1:55:00 AM

0

Daniel Harple wrote:
> I am getting an error in GNU Emacs with ruby syntax highlighting.
>
> <<< CODE >>>
> foo = "'?"
>
> def blah
> end
> <<< CODE >>>
>
> The highlighting for the string goes on.

Is it due to the ' to the left of the ? (?).
If you remove the ' it seems to display correctly.

--

Links: http://del.icio...

Home: http://thispaceavailable.uxb.net/...

"The whole world is about three drinks behind." -- Humphrey Bogart


George Ogata

1/14/2006 7:15:00 AM

0

Daniel Harple <dharple@generalconsumption.org> writes:

> I am getting an error in GNU Emacs with ruby syntax highlighting.
>
> <<< CODE >>>
> foo = "'?"
>
> def blah
> end
> <<< CODE >>>
>
> The highlighting for the string goes on.

I don't see this happening in the latest ruby-mode. Get it from CVS
(in misc/), or:

http://www.ruby-lang.org/cgi-bin/cvsweb.cgi/...

It probably happened because it was treating the ?" as a character
escape, and so was still looking for a closing ".