]> git.lizzy.rs Git - rust.git/commit
Fix grammar documentation wrt Unicode identifiers
authorbstrie <ben.striegel@gmail.com>
Wed, 16 May 2018 00:56:56 +0000 (00:56 +0000)
committerbstrie <ben.striegel@gmail.com>
Wed, 16 May 2018 00:56:56 +0000 (00:56 +0000)
commitce0b7cc529b2bba4207bcc2d93af4c7bb3640e64
tree6ef03de62a0af9eb136c7467d70b32ddb8b69f96
parentf0fdaba04ea7474cd1f66264ef4edb3485a95864
Fix grammar documentation wrt Unicode identifiers

The grammar defines identifiers in terms of XID_start and XID_continue,
but this is referring to the unstable non_ascii_idents feature.
The documentation implies that non_ascii_idents is forthcoming, but this
is left over from pre-1.0 documentation; in reality, non_ascii_idents
has been without even an RFC for several years now, and will not be
stabilized anytime soon. Furthermore, according to the tracking issue at
https://github.com/rust-lang/rust/issues/28979 , it's highly
questionable whether or not this feature will use XID_start or
XID_continue even when or if non_ascii_idents is stabilized.
This commit fixes this by respecifying identifiers as the usual
[a-zA-Z_][a-zA-Z0-9_]*
src/doc/grammar.md