emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-mode patch


From: Slawomir Nowaczyk
Subject: Re: python-mode patch
Date: Wed, 23 Aug 2006 22:10:56 +0200

On Tue, 22 Aug 2006 15:31:33 -0500
Peter Lee <address@hidden> wrote:

#> Can "self" be made a keyword?

I hope so :)

Here is a patch.

**********************************************************************

--- m:/EmacsCVS/EmacsCVS/lisp/progmodes/python.el       2006-08-22 
19:49:58.809940800 +0200
+++ c:/Emacs/lisp/progmodes/python.el   2006-08-23 22:07:21.844835200 +0200
@@ -94,7 +94,9 @@
             "import" "in" "is" "lambda" "not" "or" "pass" "print"
             "raise" "return" "try" "while" "yield"
             ;; Future keywords
-            "as" "None")
+            "as" "None"
+             ;; Not real keywords, but close enough to be fontified as such
+             "self" "True" "False")
         symbol-end)
     ;; Definitions
     (,(rx symbol-start (group "class") (1+ space) (group (1+ (or word ?_))))

**********************************************************************

-- 
 Best wishes,
   Slawomir Nowaczyk
     ( address@hidden )

In 10 minutes, a hurricane releases more energy than all of the world's
nuclear weapons combined.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]