mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
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:
committed by
Andreas Rumpf
parent
5f44651769
commit
920f9be9aa
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user