10027Re: Snapshot 43 - Python syntax highlighting weirdness
- Feb 28, 2009Hi Zvezdan,
That's great. Get it submitted. The maintainer responded very
quickly to me and was happy to fix issues.
The error I pointed out was recent, and far more egregious than those
you listed. With it fixed, the python syntax file that comes with vim
works "well enough" for me.
On Sat, Feb 28, 2009 at 8:39 PM, Zvezdan Petkovic <zpetkovic@...> wrote:
> On Feb 28, 2009, at 7:28 PM, Matt Tolton wrote:
>> It's a bug in the python syntax file. If you add "contained" to the
>> pythonDecoratorName syntax item then it fixes it. I emailed the
>> maintainer and he fixed it, so it will probably be fixed the next time
>> bjorn updates the runtime files.
> Actually, that file is full of errors.
> - regular expressions for many syntax elements are not fully correct
> - the synchronization is not very good
> - it cannot highlight python code in doctests at all.
> - it cannot higlight decorators that are methods of an object
> - ...
> I have a syntax file that fixes all the issues, adds the highlighting
> for doctests, fixes the synchronization, and brings all the keywords
> and exceptions up-to-date with Python 2.6 and 3.0.
> I'll try to get it into Vim with either the current maintainer support
> or vim-dev and Bram directly.
> My syntax file is tested every single day on large professional Zope
> projects that use all features of Python.
You received this message from the "vim_mac" maillist.
For more information, visit http://www.vim.org/maillist.php
- << Previous post in topic Next post in topic >>