Skip to content

Commit 4fe9634

Browse files
committed
[lex.literals] Improve presentation of tables.
Break lines better, and add horizontal rules (to make "rowspaning cells") to clarify the scope of table entries.
1 parent 42ba6e3 commit 4fe9634

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

source/lex.tex

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@
13671367
\end{note}
13681368

13691369
\begin{floattable}{Character literals}{lex.ccon.literal}
1370-
{lllll}
1370+
{l|l|l|l|l}
13711371
\topline
13721372
Encoding & Kind & Type & Associated char- & Example \\
13731373
prefix & & & acter encoding & \\
@@ -1376,12 +1376,12 @@
13761376
\defnx{ordinary character literal}{literal!character!ordinary} &
13771377
\keyword{char} &
13781378
ordinary &
1379-
\tcode{'v'} \\
1379+
\tcode{'v'} \\ \cline{2-3}\cline{5-5}
13801380
&
13811381
non-encodable ordinary character literal &
13821382
\keyword{int} &
13831383
literal &
1384-
\tcode{'\textbackslash U0001F525'} \\
1384+
\tcode{'\textbackslash U0001F525'} \\ \cline{2-3}\cline{5-5}
13851385
&
13861386
ordinary multicharacter literal &
13871387
\keyword{int} &
@@ -1391,12 +1391,12 @@
13911391
\defnx{wide character literal}{literal!character!wide} &
13921392
\keyword{wchar_t} &
13931393
wide &
1394-
\tcode{L'w'} \\
1394+
\tcode{L'w'} \\ \cline{2-3}\cline{5-5}
13951395
&
13961396
non-encodable wide character literal &
13971397
\keyword{wchar_t} &
13981398
literal &
1399-
\tcode{L'\textbackslash U0001F32A'} \\
1399+
\tcode{L'\textbackslash U0001F32A'} \\ \cline{2-3}\cline{5-5}
14001400
&
14011401
wide multicharacter literal &
14021402
\keyword{wchar_t} &
@@ -1706,7 +1706,8 @@
17061706
{llp{2.6cm}p{2.3cm}p{4.7cm}}
17071707
\topline
17081708
Encoding & Kind & Type & Associated & Examples \\
1709-
prefix & & & character encoding & \\
1709+
prefix & & & character & \\
1710+
& & & encoding & \\
17101711
\capsep
17111712
none &
17121713
\defnx{ordinary string literal}{literal!string!ordinary} &
@@ -1717,7 +1718,7 @@
17171718
\tcode{L} &
17181719
\defnx{wide string literal}{literal!string!wide} &
17191720
array of $n$\newline \tcode{\keyword{const} \keyword{wchar_t}} &
1720-
wide literal encoding &
1721+
wide literal\newline encoding &
17211722
\tcode{L"wide string"}\newline
17221723
\tcode{LR"w(wide raw string)w"} \\
17231724
\tcode{u8} &

0 commit comments

Comments
 (0)