From: Alan Mackenzie <acm@muc.de>
To: Michael Welsh Duggan <mwd@md5i.com>
Cc: Ivan Andrus <darthandrus@gmail.com>, 15212@debbugs.gnu.org
Subject: bug#15212: 24.3.50; c++-mode doesn't support raw string literals
Date: Thu, 2 Jun 2016 16:36:40 +0000 [thread overview]
Message-ID: <20160602163640.GD4067__42818.615321494$1464885507$gmane$org@acm.fritz.box> (raw)
In-Reply-To: <87mvn57pk8.fsf@md5i.com>
Hello, Michael.
On Tue, May 31, 2016 at 07:52:55PM -0400, Michael Welsh Duggan wrote:
> Alan Mackenzie <acm@muc.de> writes:
[ .... ]
> >> I did find one. According to
> >> http://en.cppreference.com/w/cpp/language/string_literal the delimiter can
> >> 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:
> <raw-string>:
> " <d-char-sequence(opt)> ( <r-char-sequence(opt)> ) <d-char-sequence(opt)> "
> <r-char-sequence>:
> <r-char>
> <r-char-sequence> <r-char>
> <r-char>:
> Any member of the source character set, except a right-parenthesis )
> followed by the initial <d-char-sequence> (which may be empty)
> followed by a double quote ".
> <d-char-sequence>:
> <d-char>
> <d-char-sequence> <d-char>
> <d-char>:
> 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
> _ { } [ ] # ( ) < > % : ; . ? * + - / ^ & | ~ ! = , \ " ’
Thanks, that's appreciated.
> --
> Michael Welsh Duggan
> (md5i@md5i.com)
--
Alan Mackenzie (Nuremberg, Germany).
next prev parent reply other threads:[~2016-06-02 16:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-29 21:00 bug#15212: 24.3.50; c++-mode doesn't support raw string literals Ivan Andrus
2016-03-30 3:14 ` Ivan Andrus
2016-04-03 18:36 ` Alan Mackenzie
2016-05-24 17:12 ` Ivan Andrus
2016-05-28 14:40 ` Alan Mackenzie
2016-05-29 21:36 ` Alan Mackenzie
2016-05-31 14:22 ` Ivan Andrus
2016-05-31 21:32 ` Alan Mackenzie
2016-05-31 23:52 ` Michael Welsh Duggan
2016-06-02 16:36 ` Alan Mackenzie [this message]
2016-05-31 22:21 ` Alan Mackenzie
2016-06-01 5:21 ` Ivan Andrus
2016-06-02 16:07 ` Alan Mackenzie
[not found] ` <20160602160741.GC4067@acm.fritz.box>
2016-06-06 16:32 ` Alan Mackenzie
[not found] ` <20160606163203.GA19322@acm.fritz.box>
2016-06-07 22:06 ` Michael Welsh Duggan
2016-06-07 22:21 ` Alan Mackenzie
2016-06-09 1:38 ` Ivan Andrus
2016-06-09 15:04 ` Alan Mackenzie
2016-06-09 15:06 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20160602163640.GD4067__42818.615321494$1464885507$gmane$org@acm.fritz.box' \
--to=acm@muc.de \
--cc=15212@debbugs.gnu.org \
--cc=darthandrus@gmail.com \
--cc=mwd@md5i.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.