Skip to content

Commit 6163c24

Browse files
committed
Casing; 3 dots for character ranges
1 parent 4606120 commit 6163c24

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ Names (identifiers and keywords)
388388

389389
Names are composed of the following characters:
390390

391-
* Uppercase and lowercase letters (``A-Z`` and ``a-z``)
392-
* The underscore (``_``)
393-
* Digits (``0`` through ``9``), which cannot appear as the first character
394-
* Non-ASCII characters. Valid names may only contain "letter-like" and
391+
* uppercase and lowercase letters (``A-Z`` and ``a-z``),
392+
* the underscore (``_``),
393+
* digits (``0`` through ``9``), which cannot appear as the first character, and
394+
* non-ASCII characters. Valid names may only contain "letter-like" and
395395
"digit-like" characters; see :ref:`lexical-names-nonascii` for details.
396396

397397
Names must contain at least one character, but have no upper length limit.
@@ -403,8 +403,8 @@ Formally, names are described by the following lexical definitions:
403403
:group: python-grammar
404404

405405
NAME: `name_start` `name_continue`*
406-
name_start: "a".."z" | "A".."Z" | "_" | <non-ASCII character>
407-
name_continue: name_start | "0".."9"
406+
name_start: "a"..."z" | "A"..."Z" | "_" | <non-ASCII character>
407+
name_continue: name_start | "0"..."9"
408408
identifier: <`NAME`, except keywords>
409409

410410
Note that not all names matched by this grammar are valid; see

0 commit comments

Comments
 (0)