Explicitly state that trailing underscores are banned (#12257)
It was explicit in the BNF, but the English text implied it was allowed.
This commit is contained in:
parent
5f44651769
commit
920f9be9aa
1 changed files with 5 additions and 2 deletions
|
|
@ -249,8 +249,11 @@ Identifiers & Keywords
|
|||
----------------------
|
||||
|
||||
Identifiers in Nim can be any string of letters, digits
|
||||
and underscores, beginning with a letter. Two immediate following
|
||||
underscores ``__`` are not allowed::
|
||||
and underscores, with the following restrictions:
|
||||
|
||||
* begins with a letter
|
||||
* does not end with an underscore ``_``
|
||||
* two immediate following underscores ``__`` are not allowed::
|
||||
|
||||
letter ::= 'A'..'Z' | 'a'..'z' | '\x80'..'\xff'
|
||||
digit ::= '0'..'9'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue