Skip to content

Commit 2ab2a02

Browse files
committed
Remove non-\grammarterm's from the index of grammar terms.
1 parent 858b48f commit 2ab2a02

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

source/declarations.tex

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@
7878

7979
\begin{note}
8080
\grammarterm{asm-definition}{s} are described in~\ref{dcl.asm}, and
81-
\grammarterm{linkage-specification}{s} are described in~\ref{dcl.link}.
82-
\grammarterm{Function-definition}{s} are described in~\ref{dcl.fct.def} and
81+
\grammarterm{linkage-specification}{s} are described in~\ref{dcl.link};
82+
\grammarterm{function-definition}{s} are described in~\ref{dcl.fct.def} and
8383
\grammarterm{template-declaration}{s} and
84-
\grammarterm{deduction-guide}{s} are described in \ref{temp}.
85-
\grammarterm{Namespace-definition}{s} are described in~\ref{namespace.def},
84+
\grammarterm{deduction-guide}{s} are described in \ref{temp};
85+
\grammarterm{namespace-definition}{s} are described in~\ref{namespace.def},
8686
\grammarterm{using-declaration}{s} are described in~\ref{namespace.udecl} and
8787
\grammarterm{using-directive}{s} are described in~\ref{namespace.udir}.
8888
\end{note}
@@ -493,8 +493,9 @@
493493
\indextext{function|seealso{friend function; member function; inline function; virtual function}}
494494

495495
\pnum
496-
\grammarterm{Function-specifier}{s}
497-
can be used only in function declarations.
496+
A
497+
\grammarterm{function-specifier}
498+
can be used only in a function declaration.
498499

499500
\begin{bnf}
500501
\nontermdef{function-specifier}\br

source/intro.tex

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@
617617
\pnum
618618
\indextext{notation!syntax|(}%
619619
In the syntax notation used in this document, syntactic
620-
categories are indicated by \grammarterm{italic} type, and literal words
620+
categories are indicated by \fakegrammarterm{italic} type, and literal words
621621
and characters in \tcode{constant} \tcode{width} type. Alternatives are
622622
listed on separate lines except in a few cases where a long set of
623623
alternatives is marked by the phrase ``one of''. If the text of an alternative is too long to fit on a line, the text is continued on subsequent lines indented from the first one.
@@ -634,15 +634,15 @@
634634
Names for syntactic categories have generally been chosen according to
635635
the following rules:
636636
\begin{itemize}
637-
\item \grammarterm{X-name} is a use of an identifier in a context that
637+
\item \fakegrammarterm{X-name} is a use of an identifier in a context that
638638
determines its meaning (e.g., \grammarterm{class-name},
639639
\grammarterm{typedef-name}).
640-
\item \grammarterm{X-id} is an identifier with no context-dependent meaning
640+
\item \fakegrammarterm{X-id} is an identifier with no context-dependent meaning
641641
(e.g., \grammarterm{qualified-id}).
642-
\item \grammarterm{X-seq} is one or more \grammarterm{X}'s without intervening
642+
\item \fakegrammarterm{X-seq} is one or more \fakegrammarterm{X}'s without intervening
643643
delimiters (e.g., \grammarterm{declaration-seq} is a sequence of
644644
declarations).
645-
\item \grammarterm{X-list} is one or more \grammarterm{X}'s separated by
645+
\item \fakegrammarterm{X-list} is one or more \fakegrammarterm{X}'s separated by
646646
intervening commas (e.g., \grammarterm{identifier-list} is a sequence of
647647
identifiers separated by commas).
648648
\end{itemize}%

source/macros.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@
185185
\newcommand{\defn}[1]{\defnx{#1}{#1}}
186186
\newcommand{\term}[1]{\textit{#1}}
187187
\newcommand{\gterm}[1]{\GrammarStylex{#1}}
188+
\newcommand{\fakegrammarterm}[1]{\gterm{#1}}
188189
\newcommand{\grammarterm}[1]{\indexgram{\idxgram{#1}}\gterm{#1}}
189190
\newcommand{\grammartermnc}[1]{\indexgram{\idxgram{#1}}\gterm{#1}\nocorr}
190191
\newcommand{\placeholder}[1]{\textit{#1}}

0 commit comments

Comments
 (0)