From 1df10729ba3b938580375f2dc8eb6b50b93ee11a Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Fri, 14 Nov 2025 09:00:24 -0500 Subject: [PATCH 1/2] [cpp.cond] Keywords are not identifiers while preprocessing --- source/preprocessor.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/preprocessor.tex b/source/preprocessor.tex index bab9b3be73..053e21ceb4 100644 --- a/source/preprocessor.tex +++ b/source/preprocessor.tex @@ -553,11 +553,11 @@ \grammarterm{has-embed-expression}s, and \grammarterm{has-attribute-expression}s have been performed, -all remaining identifiers and keywords, +all remaining identifiers (including those lexically identical to keywords) except for \tcode{true} and -\tcode{false}, +\tcode{false} are replaced with the \grammarterm{pp-number} \tcode{0}, and then each preprocessing token is converted into a token. From fcfbdfec55b301cba31efac6a0b5912243fc5ca8 Mon Sep 17 00:00:00 2001 From: Alisdair Meredith Date: Sat, 6 Dec 2025 07:32:04 +0700 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Hubert Tong --- source/preprocessor.tex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/preprocessor.tex b/source/preprocessor.tex index 053e21ceb4..7669bb4335 100644 --- a/source/preprocessor.tex +++ b/source/preprocessor.tex @@ -553,11 +553,11 @@ \grammarterm{has-embed-expression}s, and \grammarterm{has-attribute-expression}s have been performed, -all remaining identifiers (including those lexically identical to keywords) +all remaining identifiers (including those lexically identical to keywords), except for \tcode{true} and -\tcode{false} +\tcode{false}, are replaced with the \grammarterm{pp-number} \tcode{0}, and then each preprocessing token is converted into a token.