From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: ruby-mode interpolated quotes error Date: Fri, 2 May 2014 17:13:45 -0600 Message-ID: <20140502231345.GA20703@hysteria.proulx.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399072458 4725 80.91.229.3 (2 May 2014 23:14:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 May 2014 23:14:18 +0000 (UTC) To: Emacs Help Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 03 01:14:12 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WgMee-0002SD-Uh for geh-help-gnu-emacs@m.gmane.org; Sat, 03 May 2014 01:14:09 +0200 Original-Received: from localhost ([::1]:46637 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgMed-0003Gl-Vc for geh-help-gnu-emacs@m.gmane.org; Fri, 02 May 2014 19:14:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39646) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgMeO-0003GZ-QN for help-gnu-emacs@gnu.org; Fri, 02 May 2014 19:13:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WgMeJ-0004o9-Np for help-gnu-emacs@gnu.org; Fri, 02 May 2014 19:13:52 -0400 Original-Received: from joseki.proulx.com ([216.17.153.58]:39927) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WgMeJ-0004nt-Gh for help-gnu-emacs@gnu.org; Fri, 02 May 2014 19:13:47 -0400 Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id D4AF22183F for ; Fri, 2 May 2014 17:13:45 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id A67E92DC1B; Fri, 2 May 2014 17:13:45 -0600 (MDT) Mail-Followup-To: Emacs Help Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 216.17.153.58 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97543 Archived-At: 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