From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Somwhat subtle issues with raw string literals in C++ Date: Tue, 28 Jun 2016 16:06:56 +0000 Message-ID: <20160628160656.GE3181@acm.fritz.box> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1467130366 2850 80.91.229.3 (28 Jun 2016 16:12:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 16:12:46 +0000 (UTC) Cc: Emacs developers To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 18:12:36 2016 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 1bHvco-0002iY-Dr for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 18:12:34 +0200 Original-Received: from localhost ([::1]:37960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHvcn-0000qq-Er for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 12:12:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHvXL-0003jf-Lf for emacs-devel@gnu.org; Tue, 28 Jun 2016 12:06:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHvXG-00008J-Ea for emacs-devel@gnu.org; Tue, 28 Jun 2016 12:06:54 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:65111) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHvXG-000088-4u for emacs-devel@gnu.org; Tue, 28 Jun 2016 12:06:50 -0400 Original-Received: (qmail 83037 invoked by uid 3782); 28 Jun 2016 16:06:48 -0000 Original-Received: from acm.muc.de (p4FC46485.dip0.t-ipconnect.de [79.196.100.133]) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 28 Jun 2016 18:06:46 +0200 Original-Received: (qmail 4677 invoked by uid 1000); 28 Jun 2016 16:06:56 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:204863 Archived-At: Hello, Philipp. On Tue, Jun 28, 2016 at 03:33:30PM +0000, Philipp Stephani wrote: > Hi, > there still seem to be some subtle issues with detection of raw string > literals. Unfortunately they are hard to reproduce. One example that fails > (for me) with a recent master build is: > cd /tmp > wget > https://raw.githubusercontent.com/google/protobuf/ef7894e2dc6d287419e42a4fdc52cdfedd386d16/conformance/conformance_test.cc > /path/to/emacs -Q +686 conformance_test.cc > Around that line the fontification of the raw string literals is wrong > (quote characters are treated as string terminators), in other parts of the > file the fontification is correct. This typically happens with files that > contain many large raw string literals that contain quote characters. Thanks for the report. I've downloaded that file, and I can reproduce the error. I'll look into it. -- Alan Mackenzie (Nuremberg, Germany).