-
Couldn't load subscription status.
- Fork 797
[lex.pptoken][module][cpp] Index keyword placeholders] #8366
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Fixes cplusplus#6844 Index the keyword placeholders, export-keyword, import-keyword, and module-keyword.
812ac02 to
192eefd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
module-keyword already appears in our index of grammar productions, where it seems to belong (it looks like a grammar non-terminal).
In contrast, the index entries proposed here introduce "module-keyword" (normal font), which doesn't actually exist.
I'm not particularly opposed to adding entries into the regular index for module-keyword and friends (because they are so special), but I'm wondering how many of our potential readers would look under "keyword placeholder" in the index to find these.
|
Yes, I tried several arrangements and pushed up this first one for feedback. Thanks. I like the grouping under "keyword placeholders" but was thinking to also have the plain term redirect to the keyword placeholders entry. I am similarly concerned about the font, but do not know our macros well enough to know the correct or preferred way to fix that. Am hoping to see a review comment explaining ;) |
|
Again, what's the point here? module-keyword already appears in our index of grammar productions, so it is already indexed. Nothing to do. |
|
Per the linked comment, the other two keyword placeholders are not indexed. The goal is simply to make sure that all three can be easily found in the main index, and I will adjust PR accordingly to find an acceptable way to land. If we can just get the these grammar terms to appear in the main index from their use in grammar, like most other grammar terms, I would do that --- but I do not know how. They are never defined in the grammar as they are terminals, so do not get the extra kick into the main index. |
That is not an accurate summary of the linked issue. All three are indexed in the "index of grammar productions". As explained in the linked issue, there is no index entry in the general index, because they do not have a (traditional) definition. I have no objection to adding a general index entry for those grammar productions, but that index entry should be the same style as the other grammar entries in the main index, and should point to the definition (which, in this case, is probably a prose text definition). The pull request we have here is nothing like that. |
|
#8367 fixes this. |
Fixes #6844
Index the keyword placeholders, export-keyword, import-keyword, and module-keyword.