]> granicus.if.org Git - python/commitdiff
(python-font-lock-keywords): Add "yield" as a keyword to support the
authorBarry Warsaw <barry@python.org>
Tue, 19 Jun 2001 18:24:42 +0000 (18:24 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 19 Jun 2001 18:24:42 +0000 (18:24 +0000)
new "simple generators" feature of 2.2.  See PEP 255.

Misc/python-mode.el

index 30d733ba947a82541bd2c2a2a8093d5080fceba5..6ee2bab1b4768f041483f9f8cc135ade25c09a8b 100644 (file)
@@ -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