Skip to content

Commit 462c5bf

Browse files
jensmaurertkoeppe
authored andcommitted
[lex] Use \keyword for alternative tokens.
1 parent b0a253c commit 462c5bf

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

source/lex.tex

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,9 @@
404404

405405
\pnum
406406
The \grammarterm{import-keyword} is produced
407-
by processing an \tcode{import} directive\iref{cpp.import},
407+
by processing an \keyword{import} directive\iref{cpp.import},
408408
the \grammarterm{module-keyword} is produced
409-
by preprocessing a \tcode{module} directive\iref{cpp.module}, and
409+
by preprocessing a \keyword{module} directive\iref{cpp.module}, and
410410
the \grammarterm{export-keyword} is produced
411411
by preprocessing either of the previous two directives.
412412
\begin{note}
@@ -464,22 +464,22 @@
464464

465465
\begin{tokentable}{Alternative tokens}{lex.digraph}{Alternative}{Primary}
466466
\tcode{<\%} & \tcode{\{} &
467-
\tcode{and} & \tcode{\&\&} &
468-
\tcode{and_eq} & \tcode{\&=} \\ \rowsep
467+
\keyword{and} & \tcode{\&\&} &
468+
\keyword{and_eq} & \tcode{\&=} \\ \rowsep
469469
\tcode{\%>} & \tcode{\}} &
470-
\tcode{bitor} & \tcode{|} &
471-
\tcode{or_eq} & \tcode{|=} \\ \rowsep
470+
\keyword{bitor} & \tcode{|} &
471+
\keyword{or_eq} & \tcode{|=} \\ \rowsep
472472
\tcode{<:} & \tcode{[} &
473-
\tcode{or} & \tcode{||} &
474-
\tcode{xor_eq} & \tcode{\caret=} \\ \rowsep
473+
\keyword{or} & \tcode{||} &
474+
\keyword{xor_eq} & \tcode{\caret=} \\ \rowsep
475475
\tcode{:>} & \tcode{]} &
476-
\tcode{xor} & \tcode{\caret} &
477-
\tcode{not} & \tcode{!} \\ \rowsep
476+
\keyword{xor} & \tcode{\caret} &
477+
\keyword{not} & \tcode{!} \\ \rowsep
478478
\tcode{\%:} & \tcode{\#} &
479-
\tcode{compl} & \tcode{\~} &
480-
\tcode{not_eq} & \tcode{!=} \\ \rowsep
479+
\keyword{compl} & \tcode{\~} &
480+
\keyword{not_eq} & \tcode{!=} \\ \rowsep
481481
\tcode{\%:\%:} & \tcode{\#\#} &
482-
\tcode{bitand} & \tcode{\&} &
482+
\keyword{bitand} & \tcode{\&} &
483483
& \\
484484
\end{tokentable}%
485485
\indextext{token!alternative|)}
@@ -941,8 +941,8 @@
941941
\terminal{= += -= *= /= \%= \caret{}= \&= |=}\br
942942
\terminal{== != < > <= >= <=> \&\& ||}\br
943943
\terminal{<< >> <<= >>= ++ -- ,}\br
944-
\terminal{and or xor not bitand bitor compl}\br
945-
\terminal{and_eq or_eq xor_eq not_eq}
944+
\terminal{\keyword{and} \keyword{or} \keyword{xor} \keyword{not} \keyword{bitand} \keyword{bitor} \keyword{compl}}\br
945+
\terminal{\keyword{and_eq} \keyword{or_eq} \keyword{xor_eq} \keyword{not_eq}}
946946
\end{bnf}
947947

948948
Each \grammarterm{operator-or-punctuator} is converted to a single token

0 commit comments

Comments
 (0)