diff options
author | Mathias Stearn <redbeard0531@gmail.com> | 2019-09-25 13:12:54 -0400 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-09-25 19:12:54 +0200 |
commit | 920f9be9aa31d657e7e35a79a47a0c264f60ef40 (patch) | |
tree | 724f58de0d963930c41b76d35c42a4d35d2c2a4c | |
parent | 5f44651769cfa0c07d0bcfefb47fdf73dfb9982e (diff) | |
download | Nim-920f9be9aa31d657e7e35a79a47a0c264f60ef40.tar.gz |
Explicitly state that trailing underscores are banned (#12257)
It was explicit in the BNF, but the English text implied it was allowed.
-rw-r--r-- | doc/manual.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/manual.rst b/doc/manual.rst index da4517681..5116b3bda 100644 --- a/doc/manual.rst +++ b/doc/manual.rst @@ -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' |