Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Long string literal bug in ruby-mode.el?
John Lam
5/2/2005 8:08:00 PM
If I have a string like
$def = <<-EOF
... big chunk of text
EOF
the syntax highlighting in ruby-mode breaks.
Is there a known workaround for this issue?
Thanks
-John
1 Answer
Jim Menard
5/2/2005 8:22:00 PM
0
John Lam wrote:
> If I have a string like
>
> $def = <<-EOF
>
> ... big chunk of text
>
> EOF
>
> the syntax highlighting in ruby-mode breaks.
>
> Is there a known workaround for this issue?
I don't know. I don't think it's the size of the text, though. I think that
font-lock-mode gets confused by quotes in some circumstances, like when they
are inside regexes inside strings or something like that. I will often add a
comment just after the EOF that "closes" the quote it thinks is open. If a
single quote doesn't work, then I try a double quote.
$def = <<-EOF
...
EOF
# ' <-- un-confuse Emacs font-lock-mode
Jim
--
Jim Menard, jimm@io.com,
http://www.io...
"Cheat sheet for the 21st century: Closed, bad. Open, good." -- Wired
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Long string literal bug in ruby-mode.el?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password