Skip to content

Commit 03ac024

Browse files
committed
Wrap keywords with \keyword{...}
1 parent 75dea8c commit 03ac024

File tree

7 files changed

+23
-23
lines changed

7 files changed

+23
-23
lines changed

source/declarations.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6815,16 +6815,16 @@
68156815
\bnfindent \placeholder{promise-type} \exposid{promise} \placeholder{promise-constructor-arguments} \terminal{;}\br
68166816
% FIXME: \bnfindent \exposid{promise}\terminal{.get_return_object()} \terminal{;}
68176817
% ... except that it's not a discarded-value expression
6818-
\bnfindent \terminal{try} \terminal{\{}\br
6819-
\bnfindent\bnfindent \terminal{co_await} \terminal{\exposid{promise}.initial_suspend()} \terminal{;}\br
6818+
\bnfindent \keyword{try} \terminal{\{}\br
6819+
\bnfindent\bnfindent \keyword{co_await} \terminal{\exposid{promise}.initial_suspend()} \terminal{;}\br
68206820
\bnfindent\bnfindent function-body\br
6821-
\bnfindent \terminal{\} catch ( ... ) \{}\br
6822-
\bnfindent\bnfindent \terminal{if (!\exposid{initial-await-resume-called})}\br
6823-
\bnfindent\bnfindent\bnfindent \terminal{throw} \terminal{;}\br
6821+
\bnfindent \terminal{\}} \keyword{catch} \terminal{( ... ) \{}\br
6822+
\bnfindent\bnfindent \keyword{if} \terminal{(!\exposid{initial-await-resume-called})}\br
6823+
\bnfindent\bnfindent\bnfindent \keyword{throw} \terminal{;}\br
68246824
\bnfindent\bnfindent \terminal{\exposid{promise}.unhandled_exception()} \terminal{;}\br
68256825
\bnfindent \terminal{\}}\br
68266826
\exposid{final-suspend} \terminal{:}\br
6827-
\bnfindent \terminal{co_await} \terminal{\exposid{promise}.final_suspend()} \terminal{;}\br
6827+
\bnfindent \keyword{co_await} \terminal{\exposid{promise}.final_suspend()} \terminal{;}\br
68286828
\terminal{\}}
68296829
\end{ncsimplebnf}
68306830
where

source/expressions.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
If a program invokes
323323
a defaulted copy/move constructor or copy/move assignment operator
324324
for a union of type \tcode{U} with a glvalue argument
325-
that does not denote an object of type \cv{}~\keyword{U} within its lifetime,
325+
that does not denote an object of type \cv{}~\tcode{U} within its lifetime,
326326
the behavior is undefined.
327327
\begin{note}
328328
In C, an entire object of structure type can be accessed, e.g., using assignment.
@@ -2352,7 +2352,7 @@
23522352
identifier \opt{\terminal{...}}\br
23532353
\terminal{\&} identifier \opt{\terminal{...}}\br
23542354
\keyword{this}\br
2355-
\terminal{*} \terminal{this}
2355+
\terminal{*} \keyword{this}
23562356
\end{bnf}
23572357

23582358
\begin{bnf}
@@ -3204,8 +3204,8 @@
32043204
typename-specifier \terminal{(} \opt{expression-list} \terminal{)}\br
32053205
simple-type-specifier braced-init-list\br
32063206
typename-specifier braced-init-list\br
3207-
postfix-expression \terminal{.} \opt{\terminal{template}} id-expression\br
3208-
postfix-expression \terminal{->} \opt{\terminal{template}} id-expression\br
3207+
postfix-expression \terminal{.} \opt{\keyword{template}} id-expression\br
3208+
postfix-expression \terminal{->} \opt{\keyword{template}} id-expression\br
32093209
postfix-expression \terminal{++}\br
32103210
postfix-expression \terminal{--}\br
32113211
\keyword{dynamic_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
@@ -4882,7 +4882,7 @@
48824882

48834883
\begin{bnf}
48844884
\nontermdef{await-expression}\br
4885-
\terminal{co_await} cast-expression
4885+
\keyword{co_await} cast-expression
48864886
\end{bnf}
48874887

48884888
\pnum
@@ -7199,8 +7199,8 @@
71997199

72007200
\begin{bnf}
72017201
\nontermdef{yield-expression}\br
7202-
\terminal{co_yield} assignment-expression\br
7203-
\terminal{co_yield} braced-init-list
7202+
\keyword{co_yield} assignment-expression\br
7203+
\keyword{co_yield} braced-init-list
72047204
\end{bnf}
72057205

72067206
\pnum

source/lex.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,7 +1679,7 @@
16791679
\topline
16801680
\lhdr{\grammarterm{floating-point-suffix}} & \rhdr{type} \\ \capsep
16811681
none & \keyword{double} \\
1682-
\tcode{f} or \tcode{F} & \keyword {float} \\
1682+
\tcode{f} or \tcode{F} & \keyword{float} \\
16831683
\tcode{l} or \tcode{L} & \keyword{long} \keyword{double} \\
16841684
\tcode{f16} or \tcode{F16} & \tcode{std::float16_t} \\
16851685
\tcode{f32} or \tcode{F32} & \tcode{std::float32_t} \\
@@ -2068,8 +2068,8 @@
20682068
\indextext{literal!boolean}%
20692069
\begin{bnf}
20702070
\nontermdef{boolean-literal}\br
2071-
\terminal{false}\br
2072-
\terminal{true}
2071+
\keyword{false}\br
2072+
\keyword{true}
20732073
\end{bnf}
20742074

20752075
\pnum
@@ -2082,7 +2082,7 @@
20822082
\indextext{literal!pointer}%
20832083
\begin{bnf}
20842084
\nontermdef{pointer-literal}\br
2085-
\terminal{nullptr}
2085+
\keyword{nullptr}
20862086
\end{bnf}
20872087

20882088
\pnum

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@
563563
and having the form
564564
\begin{ncbnf}
565565
\terminal{R} \placeholder{call-function} \terminal{(} conversion-type-id \ %
566-
\terminal{F, P$_1$ a$_1$, $\dotsc$, P$_n$ a$_n$)} \terminal{\{ return F (a$_1$, $\dotsc$, a$_n$); \}}
566+
\terminal{F, P$_1$ a$_1$, $\dotsc$, P$_n$ a$_n$)} \terminal{\{} \keyword{return} \terminal{F (a$_1$, $\dotsc$, a$_n$); \}}
567567
\end{ncbnf}
568568
is also considered as a candidate function.
569569
Similarly, surrogate
@@ -3283,7 +3283,7 @@
32833283
%% Ed. note: character protrusion would misalign various operators.
32843284
\microtypesetup{protrusion=false}\obeyspaces
32853285
\nontermdef{operator} \textnormal{one of}\br
3286-
\terminal{new delete new[] delete[] co_await (\rlap{\,)} [\rlap{\,]} -> ->*}\br
3286+
\terminal{\keyword{new} \keyword{delete} \keyword{new}[] \keyword{delete}[] \keyword{co_await} (\rlap{\,)} [\rlap{\,]} -> ->*}\br
32873287
\terminal{\~ ! + - * / \% \caret{} \&}\br
32883288
\terminal{| = += -= *= /= \%= \caret{}= \&=}\br
32893289
\terminal{|= == != < > <= >= <=> \&\&}\br

source/preprocessor.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@
713713
whether the \tcode{\#include} preprocessing directive
714714
is instead replaced by an \tcode{import} directive\iref{cpp.import} of the form
715715
\begin{ncbnf}
716-
\terminal{import} header-name \terminal{;} new-line
716+
\keyword{import} header-name \terminal{;} new-line
717717
\end{ncbnf}
718718

719719
\pnum

source/statements.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@
976976

977977
\begin{bnf}
978978
\nontermdef{coroutine-return-statement}\br
979-
\terminal{co_return} \opt{expr-or-braced-init-list} \terminal{;}
979+
\keyword{co_return} \opt{expr-or-braced-init-list} \terminal{;}
980980
\end{bnf}
981981

982982
\pnum
@@ -996,7 +996,7 @@
996996
promise object\iref{dcl.fct.def.coroutine}.
997997
A \keyword{co_return} statement is equivalent to:
998998
\begin{ncsimplebnf}
999-
\terminal{\{} S\terminal{;} \terminal{goto} \exposid{final-suspend}\terminal{;} \terminal{\}}
999+
\terminal{\{} S\terminal{;} \keyword{goto} \exposid{final-suspend}\terminal{;} \terminal{\}}
10001000
\end{ncsimplebnf}
10011001
where \exposid{final-suspend} is the exposition-only label
10021002
defined in \ref{dcl.fct.def.coroutine}

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4515,7 +4515,7 @@
45154515
\begin{bnf}
45164516
\nontermdef{typename-specifier}\br
45174517
\keyword{typename} nested-name-specifier identifier\br
4518-
\keyword{typename} nested-name-specifier \opt{\terminal{template}} simple-template-id
4518+
\keyword{typename} nested-name-specifier \opt{\keyword{template}} simple-template-id
45194519
\end{bnf}
45204520

45214521
\pnum

0 commit comments

Comments
 (0)