summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2001-07-14 04:59:24 (GMT)
committerKurt B. Kaiser <kbk@shore.net>2001-07-14 04:59:24 (GMT)
commit752e4d55310655c22524e5d63319e18a1bf048b7 (patch)
tree4c88ed6510f5596d1f566ad758589688f698cef0 /Lib/idlelib
parent8bf5b2027aac3c614657794ab1c38827755b092a (diff)
downloadcpython-752e4d55310655c22524e5d63319e18a1bf048b7.zip
cpython-752e4d55310655c22524e5d63319e18a1bf048b7.tar.gz
cpython-752e4d55310655c22524e5d63319e18a1bf048b7.tar.bz2
py-cvs-2001_07_13 (Rel 1.9) merge
"Taught IDLE's autoident parser that "yield" is a keyword that begins a stmt. Along w/ the preceding change to keyword.py, making all this work w/ a future-stmt just looks harder and harder." --tim_one (From Rel 1.8: "Hack to make this still work with Python 1.5.2. ;-( " --fdrake)
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/PyParse.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/idlelib/PyParse.py b/Lib/idlelib/PyParse.py
index a512356..c8212b2 100644
--- a/Lib/idlelib/PyParse.py
+++ b/Lib/idlelib/PyParse.py
@@ -29,6 +29,7 @@ _synchre = re.compile(r"""
| except
| raise
| import
+ | yield
)
\b
""", re.VERBOSE | re.MULTILINE).search