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:
Mathias Stearn
2019-09-25 13:12:54 -04:00
committed by Andreas Rumpf
parent 5f44651769
commit 920f9be9aa

View File

@@ -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'