bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#15212: 24.3.50; c++-mode doesn't support raw string literals


From: Alan Mackenzie
Subject: bug#15212: 24.3.50; c++-mode doesn't support raw string literals
Date: Thu, 2 Jun 2016 16:36:40 +0000
User-agent: Mutt/1.5.24 (2015-08-30)

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).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]