mirror of
https://github.com/python/cpython.git
synced 2025-11-12 07:02:33 +00:00
Fix typo in example regular expression.
This commit is contained in:
parent
35c87f2b8e
commit
8f5dbc83ea
1 changed files with 1 additions and 1 deletions
|
|
@ -1299,7 +1299,7 @@ successive matches::
|
||||||
|
|
||||||
def tokenize(s):
|
def tokenize(s):
|
||||||
tok_spec = [
|
tok_spec = [
|
||||||
('NUMBER', r'\d+(.\d+)?'), # Integer or decimal number
|
('NUMBER', r'\d+(\.\d*)?'), # Integer or decimal number
|
||||||
('ASSIGN', r':='), # Assignment operator
|
('ASSIGN', r':='), # Assignment operator
|
||||||
('END', ';'), # Statement terminator
|
('END', ';'), # Statement terminator
|
||||||
('ID', r'[A-Za-z]+'), # Identifiers
|
('ID', r'[A-Za-z]+'), # Identifiers
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue