diff options
author | Alois Wohlschlager <alois1@gmx-topmail.de> | 2024-07-13 16:11:07 +0200 |
---|---|---|
committer | alois31 <alois1@gmx-topmail.de> | 2024-07-17 22:01:48 +0000 |
commit | beb231784e6bfadf59f31e56631d80d60a4b0c84 (patch) | |
tree | a46eb91cdd64a94f859f43423d6810701f04d6fb /doc/manual/src/contributing/cxx.md | |
parent | 68567206f244f26f4830030c172d63c3dc9a13a1 (diff) |
doc/manual: clarify documentation related to the `$$` parser bug
Due to a mistake in the grammar, a dollar character implicitly escapes a second
dollar character that immediately follows, so that it cannot start an
interpolation. Unfortunately, this behaviour has since come to be relied upon,
so it cannot be fixed. Furthermore, the documentation on regular strings did
not mention this behaviour at all, while in the case of indented strings it was
rather implicit.
Mention it explicitly in both cases, and describe how an interpolation can
follow a dollar character (namely, by escaping that). Since we have to touch
that section anyway, state that any character (other than n, r, and t; but
notably including `$` even if not succeeded by `{`) can be escaped using a
backslash in regular strings.
Change-Id: I7e5d68a9a4130eec98ce8218b485168f4b31a677
Diffstat (limited to 'doc/manual/src/contributing/cxx.md')
0 files changed, 0 insertions, 0 deletions