Skip to content

Commit 586f4ed

Browse files
AlisdairMtkoeppe
authored andcommitted
[cpp.pre] Fix grammar for #elifdef
This fix is editorial as it corrects a mis-application of the original paper, https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf. Note that the corresponding use of this grammar in [cpp.cond]p13 assumes the correct grammar, making the intent equally clear.
1 parent 9357ba6 commit 586f4ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/preprocessor.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
\begin{bnf}\obeyspaces
8383
\nontermdef{elif-group}\br
8484
\terminal{\# elif } constant-expression new-line \opt{group}\br
85-
\terminal{\# elifdef } constant-expression new-line \opt{group}\br
86-
\terminal{\# elifndef} constant-expression new-line \opt{group}
85+
\terminal{\# elifdef } identifier new-line \opt{group}\br
86+
\terminal{\# elifndef} identifier new-line \opt{group}
8787
\end{bnf}
8888

8989
\begin{bnf}\obeyspaces

0 commit comments

Comments
 (0)