From e275c42c38f7a83275de027b200b39460b3ec7b7 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Tue, 19 Jun 2001 18:24:42 +0000 Subject: [PATCH] (python-font-lock-keywords): Add "yield" as a keyword to support the new "simple generators" feature of 2.2. See PEP 255. --- Misc/python-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 30d733ba947..6ee2bab1b47 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -8,7 +8,7 @@ ;; Created: Feb 1992 ;; Keywords: python languages oop -(defconst py-version "4.1" +(defconst py-version "$Revision$" "`python-mode' version number.") ;; This software is provided as-is, without express or implied @@ -310,7 +310,7 @@ support for features needed by `python-mode'.") "from" "global" "if" "import" "in" "is" "lambda" "not" "or" "pass" "print" "raise" - "return" "while" + "return" "while" "yield" ) "\\|")) (kw2 (mapconcat 'identity