diff options
| author | Benjamin Peterson <benjamin@python.org> | 2013-01-04 04:34:40 (GMT) |
|---|---|---|
| committer | Benjamin Peterson <benjamin@python.org> | 2013-01-04 04:34:40 (GMT) |
| commit | d73f369f4c52e921ba225043c0a820856369ef44 (patch) | |
| tree | 4bc702b04312d48bc99c52c7621e15ef99f3c0ac /Lib/idlelib/HyperParser.py | |
| parent | 0a2c4f55c4d3288dce74513ef135fae167646f02 (diff) | |
| parent | c44057dfbdb4e4f651e7cc4761aa63b7e8d128c3 (diff) | |
| download | cpython-d73f369f4c52e921ba225043c0a820856369ef44.zip cpython-d73f369f4c52e921ba225043c0a820856369ef44.tar.gz cpython-d73f369f4c52e921ba225043c0a820856369ef44.tar.bz2 | |
merge heads
Diffstat (limited to 'Lib/idlelib/HyperParser.py')
| -rw-r--r-- | Lib/idlelib/HyperParser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/idlelib/HyperParser.py b/Lib/idlelib/HyperParser.py index 38a19f2..4414de7 100644 --- a/Lib/idlelib/HyperParser.py +++ b/Lib/idlelib/HyperParser.py @@ -232,6 +232,11 @@ class HyperParser: 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 "rRbB": + pos -= 1 + last_identifier_pos = pos break else: |
