diff -r c59ee1ff6f27 Lib/idlelib/HyperParser.py --- a/Lib/idlelib/HyperParser.py Sat Dec 29 23:41:08 2012 +0200 +++ b/Lib/idlelib/HyperParser.py Sun Dec 30 18:08:46 2012 +0200 @@ -232,6 +232,11 @@ pass else: # We can't continue after other types of brackets + if rawtext[pos] in "'\"": + # Scan a string prefix + while pos > 0 and rawtext[pos - 1] in "rRbBuU": + pos -= 1 + last_identifier_pos = pos break else: