Skip to content

Commit

Permalink
(python-font-lock-keywords): Add "yield" as a keyword to support the
Browse files Browse the repository at this point in the history
new "simple generators" feature of 2.2.  See PEP 255.
  • Loading branch information
warsaw committed Jun 19, 2001
1 parent 4e42561 commit e275c42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Misc/python-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e275c42

Please sign in to comment.