(python-font-lock-keywords): Add "yield" as a keyword to support the
new "simple generators" feature of 2.2. See PEP 255.
This commit is contained in:
parent
4e42561ada
commit
e275c42c38
|
@ -8,7 +8,7 @@
|
||||||
;; Created: Feb 1992
|
;; Created: Feb 1992
|
||||||
;; Keywords: python languages oop
|
;; Keywords: python languages oop
|
||||||
|
|
||||||
(defconst py-version "4.1"
|
(defconst py-version "$Revision$"
|
||||||
"`python-mode' version number.")
|
"`python-mode' version number.")
|
||||||
|
|
||||||
;; This software is provided as-is, without express or implied
|
;; 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"
|
"from" "global" "if" "import"
|
||||||
"in" "is" "lambda" "not"
|
"in" "is" "lambda" "not"
|
||||||
"or" "pass" "print" "raise"
|
"or" "pass" "print" "raise"
|
||||||
"return" "while"
|
"return" "while" "yield"
|
||||||
)
|
)
|
||||||
"\\|"))
|
"\\|"))
|
||||||
(kw2 (mapconcat 'identity
|
(kw2 (mapconcat 'identity
|
||||||
|
|
Loading…
Reference in New Issue