Author lieryan
Recipients lieryan
Date 2009-10-18.19:34:26
SpamBayes Score 3.80498e-05
Marked as misclassified No
Message-id <1255894468.82.0.699463762919.issue7166@psf.upfronthosting.co.za>
In-reply-to
Content
On python trunk and 3.2 IDLE, the b in b'' is not green colored.
On python 3.1 IDLE, the u in u'' is still colored, despite a SyntaxError.

(sorry, I don't have diff installed on my Windows machine)

Change on python trunk:
/Lib/idlelib/ColorDelegator.py
def make_pat():
    ....
    sqstring = r"(\b[rRuUbB])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
    dqstring = r'(\b[rRuUbB])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
    sq3string = r"(\b[rRuUbB])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
    dq3string = r'(\b[rRuUbB])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
    ....


And on py3k branch:
/Lib/idlelib/ColorDelegator.py
def make_pat():
    ....
    sqstring = r"(\b[rRbB])?'[^'\\\n]*(\\.[^'\\\n]*)*'?"
    dqstring = r'(\b[rRbB])?"[^"\\\n]*(\\.[^"\\\n]*)*"?'
    sq3string = r"(\b[rRbB])?'''[^'\\]*((\\.|'(?!''))[^'\\]*)*(''')?"
    dq3string = r'(\b[rRbB])?"""[^"\\]*((\\.|"(?!""))[^"\\]*)*(""")?'
    ....
History
Date User Action Args
2009-10-18 19:34:28lieryansetrecipients: + lieryan
2009-10-18 19:34:28lieryansetmessageid: <1255894468.82.0.699463762919.issue7166@psf.upfronthosting.co.za>
2009-10-18 19:34:27lieryanlinkissue7166 messages
2009-10-18 19:34:26lieryancreate