From: Bob Proulx <bob@proulx.com>
To: Emacs Help <help-gnu-emacs@gnu.org>
Subject: Re: ruby-mode interpolated quotes error
Date: Fri, 2 May 2014 17:13:45 -0600 [thread overview]
Message-ID: <20140502231345.GA20703@hysteria.proulx.com> (raw)
In-Reply-To: <CAHXt_SX4vM9BMTKcDTrqSrxUx=9w-9SDJGLU0SjmWeZ5HnbYew@mail.gmail.com>
Andrew Pennebaker wrote:
> Sometimes ruby-mode incorrectly highlights the double quotes containing an
> interpolated string.
>
> Screenshot:
>
> http://i.imgur.com/SEyMKZ4.png
Thank you for sending a URL to the image rather than the image
attached! Much smaller and much easier on the mailing lists!
> Specifically, the initial double quote on line 46 should be colored yellow,
> like the end double quote, and the single quoted string above.
>
> Anyone else experience this?
I have seen something similar but slightly different. I don't have a
solution. It hasn't been enough of an itch for me to dig into it.
But I will add that it is related to the parsing of the '#{...}' in
the string.
"abc#{def}ghi"
In the above the 'c' character before the '#' is in the incorrect
face. This is what I see.
"ab quoted string face
c#{def} variable face
ghi" quoted string face
The #{...} construct causes the character immediately preceding the
'#' to be colored in the variable face color.
I notice that you have posted a slightly different set of colors. I
assume this is simply differences in color maps or different themes
between our displays.
I am using Debian Unstable emacs 24.3.1. Everything is stock. I see
the problem I described when invoked as "emacs -Q".
Bob
next prev parent reply other threads:[~2014-05-02 23:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-02 21:42 ruby-mode interpolated quotes error Andrew Pennebaker
2014-05-02 23:13 ` Bob Proulx [this message]
2014-05-02 23:55 ` Bob Proulx
2014-05-03 1:32 ` Stefan Monnier
2014-05-03 1:55 ` Bob Proulx
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140502231345.GA20703@hysteria.proulx.com \
--to=bob@proulx.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).