Add _ to the list of keywords#42723
Conversation
also, make sure the keyword table is correctly spaced
|
(rust_highfive has picked a reviewer for you, use r? to override) |
|
I'm okay adding this, but i've noticed the reference and the grammar disagree with respect to how they define idents. The reference has additional rules stating that identifiers may be prefixed with an underscore, despite underscores not having @bors r+ rollup |
|
📌 Commit 723772f has been approved by |
|
@ubsan |
|
@petrochenkov correct, it is mostly philosophical. I just thought this was logical, and simpler than treating |
Add `_` to the list of keywords also, make sure the keyword table is correctly spaced note: the reference also needs to be updated. This is not the only way to do this in the grammar, but it's my preferred way.
Add `_` to the list of keywords also, make sure the keyword table is correctly spaced note: the reference also needs to be updated. This is not the only way to do this in the grammar, but it's my preferred way.
also, make sure the keyword table is correctly spaced
note: the reference also needs to be updated. This is not the only way to do this in the grammar, but it's my preferred way.