Decorator face doesn't match @foo.bar
Bug #744335 reported by
davidmiller
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Undecided
|
Andreas Roehler |
Bug Description
When I define a function with a decorator like so:
@foo.bar
def baz():
pass
the .bar part of the decorator is not matched by the regexp for py-decorators-face.
The following patch fixes this:
=== modified file 'python-mode.el'
--- python-mode.el 2011-03-15 21:31:20 +0000
+++ python-mode.el 2011-03-28 14:56:13 +0000
@@ -636,7 +636,7 @@
)
(list
;; decorators
- '("^[ \t]*\\(
+ '("^[ \t]*\\(
;; keywords
(cons (concat "\\<\\(" kw1 "\\)\\>[ \n\t(]") 1)
;; builtins when they don't appear as object attributes
Related branches
lp:~a-roehler/python-mode/myrkwid
- python-mode.el developers: Pending requested
-
Diff: 5004 lines (+2516/-1849)5 files modifiedUnicodeEncodeError-lp:550661-test.py (+4/-0)
py-bug-numbered-tests.el (+738/-245)
python-mode-test.el (+202/-0)
python-mode-tests.sh (+88/-0)
python-mode.el (+1484/-1604)
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
status: | New → Confirmed |
Changed in python-mode: | |
status: | Confirmed → Fix Committed |
Changed in python-mode: | |
milestone: | none → 6.0 |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.