On Sun, Jun 14, 2015 at 09:00:38PM -0700, Zvezdan Petkovic wrote:
> Two observations:
> 
> > On Jun 5, 2015, at 11:47 PM, mancha <[email protected]> wrote:
> > 
> > On Fri, Jun 05, 2015 at 06:37:30PM -0700, Ken Takata wrote:
> >> Hi,
> >> 
> >> 2015/6/6 Sat 8:53:43 UTC+9 mancha wrote:
> >>> Using Vim 7.4.691 to open Python files that contain large numbers
> >>> can effectively DoS a system via resource exhaustion (extreme CPU
> >>> usage).
> 
> 1. You can always set:
> 
>         let python_no_number_highlight = 1
> 
>    to prevent number highlighting and prevent the issues with your
>    files.
> 
> >> I think this is the same case with the following issue:
> >> https://code.google.com/p/vim/issues/detail?id=239
> >> 
> >> I had a response from the maintainer, but my patch isn't included
> >> yet.
> >> 
> >> Regards, Ken Takata
> 
> 2. Ken, thanks for researching this.
> 
>    Python syntax highlighting is in a strange situation right now.  I
>    am the author of the latest version used since the version 7.3.
>    However, Neil still remained the maintainer.  There was recently a
>    post by Dmitry who wants to become the maintainer, but his code is
>    based on Vim 6.1 instead of 7.3.
> 
>    So even my recent patch for my code is still not committed because
>    it’s not clear obviously who gives the green light for these
>    changes.
> 
>    That’s probably the reason why your change is not committed yet.
> 
> I’ll take a look at Ken’s patch and whether it changes the
> highlighting of anything else (it looks OK). Then we just need to
> figure out who wants to be an official maintainer of Vim Python syntax
> highlighting to get such changes in faster.
> 
> I do not mind doing it myself if Neil and other’s agree.
> 
> Thanks!
> 
>       Zvezdan

Hi Zvezdan.

Many thanks for your reply. You are right, one can *avoid* the problem
by disabling certain features (e.g. the number-specific toggle you
mentioned or syntax highlighting more generally).

That said, I think it would be good to go ahead and fix this. The
look-around is way too costly and doesn't appear necessary for proper
highlighting of complex numbers.

--mancha

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui