Skip to content

Commit 0abe2f3

Browse files
jensmaurertkoeppe
authored andcommitted
Fix misuses of \grammarterm (#1871)
1 parent 6ac92b8 commit 0abe2f3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

source/basic.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,9 +2240,9 @@
22402240
If the \grammarterm{id-expression} in a class member access is a
22412241
\grammarterm{qualified-id} of the form
22422242
\begin{codeblock}
2243-
class-name-or-namespace-name::...
2243+
@\placeholder{class-name-or-namespace-name}@::...
22442244
\end{codeblock}
2245-
the \grammarterm{class-name-or-namespace-name} following the \tcode{.} or
2245+
the \tcode{\placeholder{class-name-or-namespace-name}} following the \tcode{.} or
22462246
\tcode{->} operator is
22472247
first looked up in the class of the object expression and the name, if found,
22482248
is used. Otherwise it is looked up in the context of the entire
@@ -2253,9 +2253,9 @@
22532253
\pnum
22542254
If the \grammarterm{qualified-id} has the form
22552255
\begin{codeblock}
2256-
::class-name-or-namespace-name::...
2256+
::@\placeholder{class-name-or-namespace-name}@::...
22572257
\end{codeblock}
2258-
the \grammarterm{class-name-or-namespace-name} is looked up in global scope
2258+
the \tcode{\placeholder{class-name-or-namespace-name}} is looked up in global scope
22592259
as a \grammarterm{class-name} or \grammarterm{namespace-name}.
22602260

22612261
\pnum

source/expressions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,7 @@
19611961
A \grammarterm{cv-qualifier-seq} \cv{} is formed
19621962
as the union of \tcode{const} and \tcode{volatile} specifiers
19631963
around the \grammarterm{constrained-parameter}.
1964-
\tcode{F} has a single \grammarterm{parameter}
1964+
\tcode{F} has a single parameter
19651965
whose \grammarterm{type-specifier} is \cv{}~\tcode{T}
19661966
followed by the \grammarterm{abstract-declarator}.
19671967
%%% FIXME: Remove this; if deduction fails, the construct should

source/lex.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@
349349
punctuators.\footnote{\indextext{digraph}%
350350
These include ``digraphs'' and additional reserved words. The term
351351
``digraph'' (token consisting of two characters) is not perfectly
352-
descriptive, since one of the alternative preprocessing-tokens is
352+
descriptive, since one of the alternative \grammarterm{preprocessing-token}s is
353353
\tcode{\%:\%:} and of course several primary tokens contain two
354354
characters. Nonetheless, those alternative tokens that aren't lexical
355355
keywords are colloquially known as ``digraphs''. }

source/overloading.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -832,11 +832,11 @@
832832
or the type
833833
``reference to function of ($\tcode{P}_1, \dotsc, \tcode{P}_n$)
834834
returning \tcode{R}'', a \term{surrogate call function} with the unique name
835-
\grammarterm{call-function}
835+
\placeholder{call-function}
836836
and having the form
837837

838838
\begin{ncbnf}
839-
\terminal{R} call-function \terminal{(} conversion-type-id \ %
839+
\terminal{R} \placeholder{call-function} \terminal{(} conversion-type-id \ %
840840
\terminal{F, P$_1$ a$_1$, $\dotsc$, P$_n$ a$_n$)} \terminal{\{ return F (a$_1$, $\dotsc$, a$_n$); \}}
841841
\end{ncbnf}
842842

source/preprocessor.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@
775775
shall always occur as part of the token sequence
776776
\mname{VA_OPT}\tcode{(}\placeholder{content}\tcode{)},
777777
where \placeholder{content} is
778-
an arbitrary sequence of \grammarterm{preprocessing-tokens}
778+
an arbitrary sequence of \grammarterm{preprocessing-token}s
779779
other than \mname{VA_OPT},
780780
which is terminated by the closing \tcode{)}
781781
and skips intervening pairs of matching left and right parentheses.

0 commit comments

Comments
 (0)