Skip to content

Commit b482338

Browse files
committed
CWG2870 Combining absent encoding-prefixes
1 parent ae99d72 commit b482338

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

source/lex.tex

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1896,16 +1896,11 @@
18961896

18971897
\pnum
18981898
\indextext{concatenation!string}%
1899-
The common \grammarterm{encoding-prefix}
1900-
for a sequence of adjacent \grammarterm{string-literal}s
1901-
is determined pairwise as follows:
1902-
If two \grammarterm{string-literal}{s} have
1903-
the same \grammarterm{encoding-prefix},
1904-
the common \grammarterm{encoding-prefix} is that \grammarterm{encoding-prefix}.
1905-
If one \grammarterm{string-literal} has no \grammarterm{encoding-prefix},
1906-
the common \grammarterm{encoding-prefix} is that
1907-
of the other \grammarterm{string-literal}.
1908-
Any other combinations are ill-formed.
1899+
The \grammarterm{string-literal}{s} in
1900+
any sequence of adjacent \grammarterm{string-literal}{s}
1901+
shall have at most one unique \grammarterm{encoding-prefix} among them.
1902+
The common \grammarterm{encoding-prefix} of the sequence is
1903+
that \grammarterm{encoding-prefix}, if any.
19091904
\begin{note}
19101905
A \grammarterm{string-literal}'s rawness has
19111906
no effect on the determination of the common \grammarterm{encoding-prefix}.

0 commit comments

Comments
 (0)