Skip to content

Commit d0911f3

Browse files
committed
Reorder the tokens to put longer ones first
1 parent 59019bb commit d0911f3

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
@@ -1371,22 +1371,22 @@ is also available in the :mod:`!token` module documentation.
13711371
:group: python-grammar
13721372

13731373
OP:
1374-
| arithmetic_operator
1374+
| assignment_operator
13751375
| bitwise_operator
13761376
| comparison_operator
13771377
| enclosing_delimiter
13781378
| other_delimiter
1379-
| assignment_operator
1380-
| other_op
1379+
| arithmetic_operator
13811380
| "..."
1381+
| other_op
13821382
1383-
arithmetic_operator: "+" | "-" | "*" | "**" | "/" | "//" | "%"
1384-
bitwise_operator: "&" | "|" | "^" | "~" | "<<" | ">>"
13851383
assignment_operator: "+=" | "-=" | "*=" | "**=" | "/=" | "//=" | "%=" |
13861384
"&=" | "|=" | "^=" | "<<=" | ">>=" | "@=" | ":="
1387-
comparison_operator: "<" | ">" | "<=" | ">=" | "==" | "!="
1385+
bitwise_operator: "&" | "|" | "^" | "~" | "<<" | ">>"
1386+
comparison_operator: "<=" | ">=" | "<" | ">" | "==" | "!="
13881387
enclosing_delimiter: "(" | ")" | "[" | "]" | "{" | "}"
13891388
other_delimiter: "," | ":" | "!" | ";" | "=" | "->"
1389+
arithmetic_operator: "+" | "-" | "**" | "*" | "//" | "/" | "%"
13901390
other_op: "." | "@"
13911391

13921392
.. note::

0 commit comments

Comments
 (0)