C++ Logo

std-proposals

Advanced search

Proposal - Allow any character between double quotes for strings.

From: J Decker <d3ck0r_at_[hidden]>
Date: Wed, 4 Mar 2020 16:27:25 -0800
There's (IMO) not a lot of reason to terminate a string because end of line
characters are encountered...

https://gist.github.com/d3x0r/32a48432660968fa249899e934c841e1

Allow any character other than a " in quoted strings. The " character
itself needs to be escaped \" if included in " to a closing ". All regular
escape handling can be done, but other literal characters like '\t' or
'\n' that
are in the source between quotes should be included as that literal
character.

J

Received on 2020-03-04 18:30:22