From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Welsh Duggan Newsgroups: gmane.emacs.bugs Subject: bug#15212: 24.3.50; c++-mode doesn't support raw string literals Date: Tue, 31 May 2016 19:52:55 -0400 Message-ID: <87mvn57pk8.fsf@md5i.com> References: <8C5AB533-B326-424B-9612-0B4858BC80BF@gmail.com> <20160403183638.GE3537@acm.fritz.box> <20160528144045.GB2950@acm.fritz.box> <20160529213616.GC3367@acm.fritz.box> <20160531213237.GB20373@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464738871 3788 80.91.229.3 (31 May 2016 23:54:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 31 May 2016 23:54:31 +0000 (UTC) Cc: Ivan Andrus , 15212@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 01 01:54:21 2016 Return-path: Envelope-to: geb-bug-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 1b7tUJ-000548-SO for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Jun 2016 01:54:20 +0200 Original-Received: from localhost ([::1]:38935 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7tUI-0007iZ-6W for geb-bug-gnu-emacs@m.gmane.org; Tue, 31 May 2016 19:54:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35847) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7tU8-0007iI-SB for bug-gnu-emacs@gnu.org; Tue, 31 May 2016 19:54:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7tU6-0003kg-MC for bug-gnu-emacs@gnu.org; Tue, 31 May 2016 19:54:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7tU2-0003jo-9u; Tue, 31 May 2016 19:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b7tU2-00035Y-2G; Tue, 31 May 2016 19:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Tue, 31 May 2016 23:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15212 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 15212-submit@debbugs.gnu.org id=B15212.146473878211593 (code B ref 15212); Tue, 31 May 2016 23:54:02 +0000 Original-Received: (at 15212) by debbugs.gnu.org; 31 May 2016 23:53:02 +0000 Original-Received: from localhost ([127.0.0.1]:48852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7tT3-00030l-TT for submit@debbugs.gnu.org; Tue, 31 May 2016 19:53:02 -0400 Original-Received: from md5i.com ([75.151.244.229]:48606) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b7tT1-00030U-JR for 15212@debbugs.gnu.org; Tue, 31 May 2016 19:53:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=2pOLOu1aMWSNzqX6pNJc5S1B5q3kQUcVNj739j6Uk1w=; b=Yn2DWoqN7Hxdgf/M+ZGhbOuS0k 6q/cW1sIuzbbXMSUHbi6D261HIHwmx/exqBeqg0Kj+S/n2YzSuY24B4z9GCPQ7tA5ZcO/mqCz3jis I+Hd/SF7Jdk4Ys7D1VvLW5DMp; Original-Received: from md5i by md5i.com with local (Exim 4.87) (envelope-from ) id 1b7tSx-0005Jx-2Y; Tue, 31 May 2016 19:52:55 -0400 In-Reply-To: <20160531213237.GB20373@acm.fritz.box> (Alan Mackenzie's message of "Tue, 31 May 2016 21:32:37 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:118913 Archived-At: Alan Mackenzie writes: > Hello again, Ivan. > > On Tue, May 31, 2016 at 08:22:07AM -0600, Ivan Andrus wrote: >> On May 29, 2016, at 3:36 PM, Alan Mackenzie wrote: > >>> I've now got a patch, which I'd be grateful if you could try out, both >>> to see if there are any bugs, and also to get your general impression. >>> I think there are one or two bugs left in the code, and it needs tidying >>> up quite a lot. So this won't be the final version. > > >> Awesome. I=92ll keep looking and let you know of any bugs I find. > >> I did find one. According to >> http://en.cppreference.com/w/cpp/language/string_literal the delimiter c= an >> contain any characters except parentheses, backslash and spaces. > > Yes, I've read that and got angry with it. It's vague - it's not clear > what is meant by "any source character" - the C++11 page in Wikipedia > says that control characters are excluded. In practice, I suspect it > won't matter all that much - most of the time the delimiter will just be > "\"(" - anybody trying to do anything fancy in the delimiter deserves > everything she gets. ;-) Her's what the standard says: :=20 " ( ) " : : Any member of the source character set, except a right-parenthesis ) followed by the initial (which may be empty) followed by a double quote ". : : any member of the basic source character set except: space, the left parenthesis (, the right parenthesis ), the backslash \, and the control characters representing horizontal tab, vertical tab, form feed, and newline. Here's what it says about the basic source character set: The basic source character set consists of 96 characters: the space character, the control characters representing horizontal tab, vertical tab, form feed, and new-line, plus the following 91 graphical characters: a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z 0 1 2 3 4 5 6 7 8 9 _ { } [ ] # ( ) < > % : ; . ? * + - / ^ & | ~ ! =3D , \ " =92=20=20=20 --=20 Michael Welsh Duggan (md5i@md5i.com)