From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Somwhat subtle issues with raw string literals in C++ Date: Tue, 28 Jun 2016 15:33:30 +0000 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1142c028a538f60536585c5d X-Trace: ger.gmane.org 1467128116 30355 80.91.229.3 (28 Jun 2016 15:35:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 Jun 2016 15:35:16 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 17:35:02 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 1bHv2U-0001fN-J8 for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 17:35:02 +0200 Original-Received: from localhost ([::1]:37614 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHv2T-0004GO-QT for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2016 11:35:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49051) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHv1G-0004CX-BN for emacs-devel@gnu.org; Tue, 28 Jun 2016 11:33:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bHv1E-0008Qp-8Z for emacs-devel@gnu.org; Tue, 28 Jun 2016 11:33:45 -0400 Original-Received: from mail-lf0-x236.google.com ([2a00:1450:4010:c07::236]:32810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bHv1E-0008Qi-1B for emacs-devel@gnu.org; Tue, 28 Jun 2016 11:33:44 -0400 Original-Received: by mail-lf0-x236.google.com with SMTP id f6so14167172lfg.0 for ; Tue, 28 Jun 2016 08:33:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=yRbIryGyvNw7a+pf935EvRhjN35Q9G4BJn75fQ6WUPs=; b=G0pmI7xgWIRPLQwWaC3bvkh8cXjq9zN9IZjpnAmjfalCxa3ctdwpOZbF5ALEe+y0d6 dntNb7OqoUnKXlAyvzjGujQEliCwcqsSsxx5X2OzxU5myhaY7lRXau/bxrhHmR99XqQj hubRAjBSSDbs2Z2/5QMKg3ogakG1c6u+hjTKffoaYbnvdyXmOeyASbSS6JMKS0DGfnfj jR3BKc5Op7Ou/OxH4ddDlBbYsOwXZSJQxmhAKzxVj6P7I3X0pl/81vfCAljNd59APzOo oux7IUWdZSJ/aibDlk8AkRGj3HtCmGJIUX8iroe1dLhmlfiaw5JgSHP1imMl/BGCO0Dt 0DYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=yRbIryGyvNw7a+pf935EvRhjN35Q9G4BJn75fQ6WUPs=; b=dsYewd+I1JoOUwhA/VFXEfC7w7VicX13NmrStAqFx6lRmNVtCCmyul+J+mIPGSEYi4 C+Mqj3O3P7jqYrdJddRSXfkk2legotSRRfavLsnc+QbHXzQp1B2SWsh6qLDmyMu8l4UT SsluzxCNfLJ8vt1wvxohlH5PMm7Nm6Y6UmCRlVk7W5cSdQv18HZqUd2BNFFObI+VRFSN 63qxGtwiD1+N0I4t/xPgT+IO2yJXhdefxtFDcpQdTSRzbYpEi2jXuvkq89sAP9WJVLut dT9LI9VHc5vMivdk0UXp+UWBT9kbHBDIGzFlBj64BRXY1BLOuRNIpbLqNRT/MoEuTopN 0cRQ== X-Gm-Message-State: ALyK8tLCXHP8Koq+ImHlpVlJmhTHIZgvde19Zjx1vgzvZkqFrWlm5mV3z2ng8dP9yl+Kk3FbR1Vf2spu0JZfag== X-Received: by 10.46.33.193 with SMTP id h62mr746572lji.41.1467128022905; Tue, 28 Jun 2016 08:33:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c07::236 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:204860 Archived-At: --001a1142c028a538f60536585c5d Content-Type: text/plain; charset=UTF-8 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. --001a1142c028a538f60536585c5d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi,

there still seem to be some subtle = issues with detection of raw string literals. Unfortunately they are hard t= o reproduce. One example that fails (for me) with a recent master build is:=

cd /tmp
/path/to/emacs -Q +686 conformance_test.cc

Around that line the fontification of the raw string lite= rals is wrong (quote characters are treated as string terminators), in othe= r parts of the file the fontification is correct. This typically happens wi= th files that contain many large raw string literals that contain quote cha= racters.
--001a1142c028a538f60536585c5d--