Update for augmented assignment, tested & approved by Guido.

This commit is contained in:
Thomas Wouters 2000-08-24 21:44:52 +00:00
parent 34052622c9
commit e1519a1b4d

View file

@ -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)