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). > > 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
Hi Ken. Many thanks for the link to the issue/bug report. Your patch indeed solves the CPU exhaustion I was experiencing. I'm not familiar with Vim's pattern multi-item lookarounds so I don't know if your s|\@<=|\zs| sub is a perfect replacement. However, it is hinted at in ":help \@<=" and more importantly doesn't negatively impact syntax highlighting in the attached complex.py. Note the change in highlighting of complex.py if you delete the regex altogether from python.vim. Cheers. --mancha PS I've noticed my PGP-signed emails get mangled by Google Groups. I use PGP/MIME which is a lot more resistant to ML shenanigans than in-line signing so Google must be putting a lot of effort into breaking it. -- -- 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.
#!/usr/bin/env python a=3.14+42.42j
