From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Small improvements to ruby-mode Date: Tue, 09 Jul 2013 21:09:34 +0400 Message-ID: <51DC43CE.3090206@yandex.ru> References: <2A6700DEDCA640EF92B326002717596D@gmail.com> <51C6EA5F.2040408@yandex.ru> <51D1CB5A.2060900@yandex.ru> <51D1F98D.3060900@yandex.ru> <51D31E12.7060002@yandex.ru> <51D4476A.40107@yandex.ru> <51D6A02C.2020207@yandex.ru> <51D6D500.7080306@yandex.ru> <51DB6516.1090708@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1373389790 15852 80.91.229.3 (9 Jul 2013 17:09:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Jul 2013 17:09:50 +0000 (UTC) Cc: Stefan Monnier , emacs-devel To: Bozhidar Batsov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 09 19:09:51 2013 Return-path: Envelope-to: ged-emacs-devel@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 1UwbQE-00062a-J6 for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2013 19:09:50 +0200 Original-Received: from localhost ([::1]:37587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwbQE-00071G-1Y for ged-emacs-devel@m.gmane.org; Tue, 09 Jul 2013 13:09:50 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35117) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwbQ5-0006zz-M6 for emacs-devel@gnu.org; Tue, 09 Jul 2013 13:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwbQ0-0006Ug-8D for emacs-devel@gnu.org; Tue, 09 Jul 2013 13:09:41 -0400 Original-Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:46496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwbQ0-0006UX-1u for emacs-devel@gnu.org; Tue, 09 Jul 2013 13:09:36 -0400 Original-Received: by mail-lb0-f180.google.com with SMTP id o10so4908243lbi.39 for ; Tue, 09 Jul 2013 10:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding :x-antivirus:x-antivirus-status; bh=0RMvLfTz5ufEP9EpDu/RaZuBZTgrAjzIBxe0wRxO55M=; b=iZ4s5DhEWlHNfg/h9/dDuu/rxLJahynJR/21v4QWi7SH0X5GF32MsZJuLLt/Igid68 auAbTXdUAA2b6PZWZ6+qNeXkVPsKI1bHP5rSGupaiwPBarPVzPWiNxAjQIHx4aZvEnUo uzRFFnhgqeGFOnHWgiSZfd/yqj7y+wlUIG/5j8mpj3bUESy3EB6KhKbGBQ7KB9gZb1h+ 8fSz4xtveEtzNreX1GSnedveSDJAsRe2m1UPndaVsxG/8XW2UolHy5/TnZCrv5MmQ+gK Ns3jaNsjKmEmOf/unF5mQzpDxhrb/W6jpKIG4ymHplxCNFtxc6h5x1EmnoEv0cxWGtBf bGqQ== X-Received: by 10.152.2.168 with SMTP id 8mr13033138lav.69.1373389775094; Tue, 09 Jul 2013 10:09:35 -0700 (PDT) Original-Received: from [127.0.0.1] ([178.252.98.87]) by mx.google.com with ESMTPSA id b8sm9624411lah.0.2013.07.09.10.09.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Jul 2013 10:09:33 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 In-Reply-To: X-Antivirus: avast! (VPS 130709-1, 09.07.2013), Outbound message X-Antivirus-Status: Clean X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161773 Archived-At: On 09.07.2013 18:36, Bozhidar Batsov wrote: > I've noticed two more font look issues (I guess I'm becoming annoying :-) ): Not really. The novelty of seeing a Ruby user in emacs-devel still hasn't worn off. :) You might want to start filing new reports as bugs, though. > - ?c, ?x, ?\n, ?\C-\M-d, etc should be font-locked as strings I guess, > since from Ruby 1.9 the character literal syntax actually yields strings. It will be the right thing to do, but handling the backslashes and key chords looks kind of complicated. > - there should be support for the new %I/%i literals from Ruby 2.0 - I > guess we should font-lock them as symbols I guess we should, but it's kind of complicated. The point of using percent literals is that you can put any stuff, at all, inside, and the only suitable Emacs syntax classes for that are strings and comments. We should be able to overwrite that highlighting in ruby-font-lock-keywords, but I don't see a good way to do that, yet. This facility works with regexp-based search, and we need to effectively say "highlight from here and till the end of the string literal".