diff Misc/python-mode.el @ 18156:0ec03e1be558 legacy-trunk

(python-font-lock-keywords): Add "yield" as a keyword to support the new "simple generators" feature of 2.2. See PEP 255.
author Barry Warsaw <barry@python.org>
date Tue, 19 Jun 2001 18:24:42 +0000
parents 9ce8a995bf12
children a29bef457ed8
line wrap: on
line diff
--- a/Misc/python-mode.el	Tue Jun 19 15:44:15 2001 +0000
+++ b/Misc/python-mode.el	Tue Jun 19 18:24:42 2001 +0000
@@ -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 @@
 			  "from"     "global"   "if"      "import"
 			  "in"       "is"       "lambda"  "not"
 			  "or"       "pass"     "print"   "raise"
-			  "return"   "while"
+			  "return"   "while"    "yield"
 			  )
 			"\\|"))
 	(kw2 (mapconcat 'identity