[Bram@moolenaar.net: Re: Include 'as' keyword in python syntax file]
James Vega
jamessan at jamessan.com
Tue Mar 28 18:47:49 UTC 2006
Bram's reply to the request for inclusion of 158_python.vim.diff.
Anyone want to take a crack at it? :)
----- Forwarded message from Bram Moolenaar <Bram at moolenaar.net> -----
From: Bram Moolenaar <Bram at moolenaar.net>
To: James Vega <jamessan at jamessan.com>
Cc: Neil Schemenauer <nas at python.ca>
Subject: Re: Include 'as' keyword in python syntax file
Date: Tue, 28 Mar 2006 19:54:25 +0200
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on debil.jamessan.com
X-Spam-Level:
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=ham
version=3.1.0
X-Gmail-Received: 9e874b39e30b131c1b2adf05de3274377c292727
X-MultiKabel-MailScanner-Information: Please contact helpdesk at quicknet.nl for more information
X-MultiKabel-MailScanner: Found to be clean
X-MultiKabel-MailScanner-SpamCheck: not spam
X-MultiKabel-MX-MailScanner-Information: Please contact helpdesk at quicknet.nl for more information
X-MultiKabel-MX-MailScanner: Found to be clean
X-MultiKabel-MX-MailScanner-SpamCheck:
X-MailScanner-From: bram at moolenaar.net
James -
> Attached is a patch for the python syntax highlighting in Vim. It has
> been applied in the Debian package of Vim.
>
> The patch adds of the 'as' keyword used when importing modules.
>
> Could you consider adding this the official release of python.vim so Bram
> can include it in the upcoming vim 7 release?
This is not quite right. "as" is not a keyword as such. It is only
recognized as part of an import statement. See
http://docs.python.org/ref/keywords.html
I think the solution would be to make a region for the import statement
and recognize "as" insdide it. That's not simple and requires some
testing...
- Bram
--
There are 2 kinds of people in my world: those who know Unix, Perl, Vim, GNU,
Linux, etc, and those who know COBOL. It gets very difficult for me at
parties, not knowing which group to socialise with :-)
Sitaram Chamarty
/// Bram Moolenaar -- Bram at Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///
----- End forwarded message -----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 199 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060328/02407932/attachment-0001.pgp
More information about the pkg-vim-maintainers
mailing list