From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3 Date: Mon, 20 Apr 2020 20:06:47 +0000 Message-ID: <20200420200647.GB8796@ACM> References: <90749329-ccb1-f96e-29c0-b4ecbb81d1d4@yandex.ru> <20200407174217.GC4009@ACM> <50acd968-4459-2fab-1609-7869e1ed072a@yandex.ru> <20200408020913.GA3992@ACM> <20200412153458.GA5249@ACM> <6d65d90c-178e-87e2-68dd-236275a5e038@yandex.ru> <20200419171209.GA23044@ACM> <34fc9563-479e-f026-9640-1b70ca9885b9@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="82281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rms@gnu.org, emacs-devel@gnu.org, rudalics@gmx.at, rrandresf@gmail.com, Dmitry Gutov , Eli Zaretskii To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 20 22:07:27 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQchT-000LH7-Qp for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 22:07:27 +0200 Original-Received: from localhost ([::1]:41668 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQchS-0008Aq-TV for ged-emacs-devel@m.gmane-mx.org; Mon, 20 Apr 2020 16:07:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59766) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQcgv-0007W1-Up for emacs-devel@gnu.org; Mon, 20 Apr 2020 16:06:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQcgv-00058e-1O for emacs-devel@gnu.org; Mon, 20 Apr 2020 16:06:53 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:60871 helo=mail.muc.de) by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from ) id 1jQcgu-00054o-An for emacs-devel@gnu.org; Mon, 20 Apr 2020 16:06:52 -0400 Original-Received: (qmail 69339 invoked by uid 3782); 20 Apr 2020 20:06:51 -0000 Original-Received: from acm.muc.de (p4FE15946.dip0.t-ipconnect.de [79.225.89.70]) by localhost.muc.de (tmda-ofmipd) with ESMTP; Mon, 20 Apr 2020 22:06:47 +0200 Original-Received: (qmail 8902 invoked by uid 1000); 20 Apr 2020 20:06:47 -0000 Content-Disposition: inline In-Reply-To: X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de; helo=mail.muc.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/20 15:51:32 X-ACL-Warn: Detected OS = FreeBSD 9.x or newer [fuzzy] X-Received-From: 193.149.48.1 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:247421 Archived-At: Hello, Stefan. On Sun, Apr 19, 2020 at 19:21:59 -0400, Stefan Monnier wrote: > >> You don't know whether it's an unterminated raw string (the usual case) > >> until you've scanned for a potential closing delimiter. > > Is C++ syntax so ambiguous? Can R"( mean something else? > No it has nothing to do with the language's syntax. > It's just a UI choice: Alan likes to highlight the opening string > delimiter of unterminated strings [ Not sure why CC-mode doesn't do the > same for unterminated comments, tho maybe it's just an oversight. ] There isn't really such a thing as an unterminated comment. A line comment extends to the next unescaped EOL, a block comment extends to the next */ or EOB. The syntax routines and font locking already handle it well. > I think this should not vary between major modes, IOW it should be > a separate feature that works on all major modes. > Stefan -- Alan Mackenzie (Nuremberg, Germany).