Skip to content

Commit a4e8211

Browse files
authored
[various subclauses] Use "\keyword" instead of "\terminal" (#7602)
Affected subclauses: expr.prim.lambda.capture, expr.post.general, expr.await, expr.yield, lex.bool, lex.nullptr, over.call.object, over.oper.general, cpp.include, stmt.return.coroutine, temp.res.general
1 parent 346c6d0 commit a4e8211

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

source/expressions.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,7 +2584,7 @@
25842584
identifier \opt{\terminal{...}}\br
25852585
\terminal{\&} identifier \opt{\terminal{...}}\br
25862586
\keyword{this}\br
2587-
\terminal{*} \terminal{this}
2587+
\terminal{*} \keyword{this}
25882588
\end{bnf}
25892589

25902590
\begin{bnf}
@@ -3445,8 +3445,8 @@
34453445
typename-specifier \terminal{(} \opt{expression-list} \terminal{)}\br
34463446
simple-type-specifier braced-init-list\br
34473447
typename-specifier braced-init-list\br
3448-
postfix-expression \terminal{.} \opt{\terminal{template}} id-expression\br
3449-
postfix-expression \terminal{->} \opt{\terminal{template}} id-expression\br
3448+
postfix-expression \terminal{.} \opt{\keyword{template}} id-expression\br
3449+
postfix-expression \terminal{->} \opt{\keyword{template}} id-expression\br
34503450
postfix-expression \terminal{++}\br
34513451
postfix-expression \terminal{--}\br
34523452
\keyword{dynamic_cast} \terminal{<} type-id \terminal{>} \terminal{(} expression \terminal{)}\br
@@ -5149,7 +5149,7 @@
51495149

51505150
\begin{bnf}
51515151
\nontermdef{await-expression}\br
5152-
\terminal{co_await} cast-expression
5152+
\keyword{co_await} cast-expression
51535153
\end{bnf}
51545154

51555155
\pnum
@@ -7469,8 +7469,8 @@
74697469

74707470
\begin{bnf}
74717471
\nontermdef{yield-expression}\br
7472-
\terminal{co_yield} assignment-expression\br
7473-
\terminal{co_yield} braced-init-list
7472+
\keyword{co_yield} assignment-expression\br
7473+
\keyword{co_yield} braced-init-list
74747474
\end{bnf}
74757475

74767476
\pnum

source/lex.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,8 +2079,8 @@
20792079
\indextext{literal!boolean}%
20802080
\begin{bnf}
20812081
\nontermdef{boolean-literal}\br
2082-
\terminal{false}\br
2083-
\terminal{true}
2082+
\keyword{false}\br
2083+
\keyword{true}
20842084
\end{bnf}
20852085

20862086
\pnum
@@ -2093,7 +2093,7 @@
20932093
\indextext{literal!pointer}%
20942094
\begin{bnf}
20952095
\nontermdef{pointer-literal}\br
2096-
\terminal{nullptr}
2096+
\keyword{nullptr}
20972097
\end{bnf}
20982098

20992099
\pnum

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@
589589
and having the form
590590
\begin{ncbnf}
591591
\terminal{R} \placeholder{call-function} \terminal{(} conversion-type-id \ %
592-
\terminal{F, P$_1$ a$_1$, $\dotsc$, P$_n$ a$_n$)} \terminal{\{ return F (a$_1$, $\dotsc$, a$_n$); \}}
592+
\terminal{F, P$_1$ a$_1$, $\dotsc$, P$_n$ a$_n$)} \terminal{\{} \keyword{return} \terminal{F (a$_1$, $\dotsc$, a$_n$); \}}
593593
\end{ncbnf}
594594
is also considered as a candidate function.
595595
Similarly, surrogate
@@ -3309,7 +3309,7 @@
33093309
%% Ed. note: character protrusion would misalign various operators.
33103310
\microtypesetup{protrusion=false}
33113311
\nontermdef{operator} \textnormal{one of}\br
3312-
\terminal{new \ \ \ \ \ delete \ \ new[] \ \ \ delete[] co_await (\rlap{\,)} \ \ \ \ \ \ \ [\rlap{\,]} \ \ \ \ \ \ \ -> \ \ \ \ \ \ ->*}\br
3312+
\terminal{\keyword{new} \ \ \ \ \ \keyword{delete} \ \ \keyword{new}[] \ \ \ \keyword{delete}[] \keyword{co_await} (\rlap{\,)} \ \ \ \ \ \ \ [\rlap{\,]} \ \ \ \ \ \ \ -> \ \ \ \ \ \ ->*}\br
33133313
\terminal{\~ \ \ \ \ \ \ \ ! \ \ \ \ \ \ \ + \ \ \ \ \ \ \ - \ \ \ \ \ \ \ * \ \ \ \ \ \ \ / \ \ \ \ \ \ \ \% \ \ \ \ \ \ \ \caret{} \ \ \ \ \ \ \ \&}\br
33143314
\terminal{| \ \ \ \ \ \ \ = \ \ \ \ \ \ \ += \ \ \ \ \ \ -= \ \ \ \ \ \ *= \ \ \ \ \ \ /= \ \ \ \ \ \ \%= \ \ \ \ \ \ \caret{}= \ \ \ \ \ \ \&=}\br
33153315
\terminal{|= \ \ \ \ \ \ == \ \ \ \ \ \ != \ \ \ \ \ \ < \ \ \ \ \ \ \ > \ \ \ \ \ \ \ <= \ \ \ \ \ \ >= \ \ \ \ \ \ <=> \ \ \ \ \ \&\&}\br

source/preprocessor.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@
793793
whether the \tcode{\#include} preprocessing directive
794794
is instead replaced by an \tcode{import} directive\iref{cpp.import} of the form
795795
\begin{ncbnf}
796-
\terminal{import} header-name \terminal{;} new-line
796+
\keyword{import} header-name \terminal{;} new-line
797797
\end{ncbnf}
798798

799799
\pnum

source/statements.tex

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

989989
\begin{bnf}
990990
\nontermdef{coroutine-return-statement}\br
991-
\terminal{co_return} \opt{expr-or-braced-init-list} \terminal{;}
991+
\keyword{co_return} \opt{expr-or-braced-init-list} \terminal{;}
992992
\end{bnf}
993993

994994
\pnum
@@ -1008,7 +1008,7 @@
10081008
promise object\iref{dcl.fct.def.coroutine}.
10091009
A \keyword{co_return} statement is equivalent to:
10101010
\begin{ncsimplebnf}
1011-
\terminal{\{} S\terminal{;} \terminal{goto} \exposid{final-suspend}\terminal{;} \terminal{\}}
1011+
\terminal{\{} S\terminal{;} \keyword{goto} \exposid{final-suspend}\terminal{;} \terminal{\}}
10121012
\end{ncsimplebnf}
10131013
where \exposid{final-suspend} is the exposition-only label
10141014
defined in \ref{dcl.fct.def.coroutine}

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4782,7 +4782,7 @@
47824782
\begin{bnf}
47834783
\nontermdef{typename-specifier}\br
47844784
\keyword{typename} nested-name-specifier identifier\br
4785-
\keyword{typename} nested-name-specifier \opt{\terminal{template}} simple-template-id
4785+
\keyword{typename} nested-name-specifier \opt{\keyword{template}} simple-template-id
47864786
\end{bnf}
47874787

47884788
\pnum

0 commit comments

Comments
 (0)