Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5283c4e commit 8323f68Copy full SHA for 8323f68
1 file changed
Doc/library/re.rst
@@ -1340,9 +1340,9 @@ successive matches::
1340
('ASSIGN', r':='), # Assignment operator
1341
('END', r';'), # Statement terminator
1342
('ID', r'[A-Za-z]+'), # Identifiers
1343
- ('OP', r'[+*\/\-]'), # Arithmetic operators
+ ('OP', r'[+\-*/]'), # Arithmetic operators
1344
('NEWLINE', r'\n'), # Line endings
1345
- ('SKIP', r'[ \t]'), # Skip over spaces and tabs
+ ('SKIP', r'[ \t]+'), # Skip over spaces and tabs
1346
]
1347
tok_regex = '|'.join('(?P<%s>%s)' % pair for pair in token_specification)
1348
get_token = re.compile(tok_regex).match
0 commit comments