From: Tim Peters Date: Tue, 19 Jun 2001 00:28:47 +0000 (+0000) Subject: Taught IDLE's autoident parser that "yield" is a keyword that begins a X-Git-Tag: v2.2a3~1522 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82ac8d13ff4b6470400a4b639fdab398183fdbbc;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Tools/idle/PyParse.py b/Tools/idle/PyParse.py index a51235620d75..c8212b214369 100644 --- a/Tools/idle/PyParse.py +++ b/Tools/idle/PyParse.py @@ -29,6 +29,7 @@ _synchre = re.compile(r""" | except | raise | import + | yield ) \b """, re.VERBOSE | re.MULTILINE).search