summaryrefslogtreecommitdiff
path: root/Lib/idlelib/PyParse.py
diff options
context:
space:
mode:
authorKurt B. Kaiser <kbk@shore.net>2001-07-14 04:59:24 +0000
committerKurt B. Kaiser <kbk@shore.net>2001-07-14 04:59:24 +0000
commit2fcbac4763dea98e661fe50295490c139536e8ce (patch)
tree56a70efa0477a48254f2f5301b0b0769f3038ddd /Lib/idlelib/PyParse.py
parent109c1a8830458aed60122ec767a8565bdabf3517 (diff)
downloadcpython-2fcbac4763dea98e661fe50295490c139536e8ce.tar.gz
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/PyParse.py')
-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 a51235620d..c8212b2143 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