mirror of
https://github.com/python/cpython.git
synced 2025-10-07 15:42:02 +00:00
Update for augmented assignment, tested & approved by Guido.
This commit is contained in:
parent
34052622c9
commit
e1519a1b4d
1 changed files with 5 additions and 2 deletions
|
@ -54,8 +54,11 @@ Triple = group("[rR]?'''", '[rR]?"""')
|
|||
String = group("[rR]?'" + any(r"[^\n'\\]", r'\\.') + "'",
|
||||
'[rR]?"' + any(r'[^\n"\\]', r'\\.') + '"')
|
||||
|
||||
Operator = group('\+', '\-', '\*\*', '\*', '\^', '~', '/', '%', '&', '\|',
|
||||
'<<', '>>', '==', '<=', '<>', '!=', '>=', '=', '<', '>')
|
||||
Operator = group('\+=', '\-=', '\*=', '%=', '/=', '\*\*=', '&=', '\|=',
|
||||
'\^=', '>>=', '<<=', '\+', '\-', '\*\*', '\*', '\^', '~',
|
||||
'/', '%', '&', '\|', '<<', '>>', '==', '<=', '<>', '!=',
|
||||
'>=', '=', '<', '>')
|
||||
|
||||
Bracket = '[][(){}]'
|
||||
Special = group(r'\r?\n', r'[:;.,`]')
|
||||
Funny = group(Operator, Bracket, Special)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue