* progmodes/python.el (python-font-lock-keywords): Handle qualified decorators
authorChong Yidong <cyd@stupidchicken.com>
Tue, 5 Jan 2010 22:11:04 +0000 (15:11 -0700)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 5 Jan 2010 22:11:04 +0000 (15:11 -0700)
(Bug#881).

lisp/ChangeLog
lisp/progmodes/python.el

index 2dc2a12..2827ff8 100644 (file)
@@ -1,3 +1,8 @@
+2010-01-05  Tom Tromey  <tromey@redhat.com>
+
+       * progmodes/python.el (python-font-lock-keywords): Handle
+       qualified decorators (Bug#881).
+
 2010-01-05  Dan Nicolaescu  <dann@ics.uci.edu>
 
        * vc-bzr.el (vc-bzr-working-revision): Fix looking for a revision
index 104ea26..94124ad 100644 (file)
@@ -1,6 +1,6 @@
 ;;; python.el --- silly walks for Python  -*- coding: iso-8859-1 -*-
 
-;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009
+;; Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
 ;;   Free Software Foundation, Inc.
 
 ;; Author: Dave Love <fx@gnu.org>
     ;; Top-level assignments are worth highlighting.
     (,(rx line-start (group (1+ (or word ?_))) (0+ space) "=")
      (1 font-lock-variable-name-face))
-    (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_)))) ; decorators
+    ;; Decorators.
+    (,(rx line-start (* (any " \t")) (group "@" (1+ (or word ?_))
+                                           (0+ "." (1+ (or word ?_)))))
      (1 font-lock-type-face))
     ;; Built-ins.  (The next three blocks are from
     ;; `__builtin__.__dict__.keys()' in Python 2.5.1.)  These patterns