# HG changeset patch # User Chong Yidong # Date 1262729464 25200 # Node ID 2db50e698b85bcc628c2c8e5f2510105d3fd60c8 # Parent debedd26160721eb71da56d6f70e75f2648d8316 * progmodes/python.el (python-font-lock-keywords): Handle qualified decorators (Bug#881). diff -r debedd261607 -r 2db50e698b85 lisp/ChangeLog --- a/lisp/ChangeLog Tue Jan 05 13:19:34 2010 -0800 +++ b/lisp/ChangeLog Tue Jan 05 15:11:04 2010 -0700 @@ -1,3 +1,8 @@ +2010-01-05 Tom Tromey + + * progmodes/python.el (python-font-lock-keywords): Handle + qualified decorators (Bug#881). + 2010-01-05 Dan Nicolaescu * vc-bzr.el (vc-bzr-working-revision): Fix looking for a revision diff -r debedd261607 -r 2db50e698b85 lisp/progmodes/python.el --- a/lisp/progmodes/python.el Tue Jan 05 13:19:34 2010 -0800 +++ b/lisp/progmodes/python.el Tue Jan 05 15:11:04 2010 -0700 @@ -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 @@ -112,7 +112,9 @@ ;; 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