Bug#504510: Incorrect highlighting of Python decorators

James Vega jamessan at debian.org
Mon Nov 24 14:47:14 UTC 2008


On Mon, Nov 24, 2008 at 12:17:15AM -0500, James Vega wrote:
> The current Python syntax file requires that only function names follow
> the @ of a decorator.  This isn't quite correct.  As per Python's
> language reference[0], decorators are actually "dotted_names" instead of
> just "identifiers".
> 
> Attached patch fixes the issue.

There was a small error in my last patch regarding how many times the
dotted identifiers could be repeated.  Attached patch fixes that.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: python.vim.diff
Type: text/x-diff
Size: 1056 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20081124/87c6410c/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20081124/87c6410c/attachment.pgp 


More information about the pkg-vim-maintainers mailing list