Re: "fromstart" syntax sync breaks state cache if using 64bit "long"

2011-06-19 Fir de Conversatie Björn Steinbrink
On 2011.06.19 04:54:36 +0200, Bram Moolenaar wrote: > Björn Steinbrink wrote: > > The patch below[2] is a quick hack that eliminates the problem, but > > spreads knowledge about the MAXLNUM "shortcut" for the fromstart syncing > > through the code, so IMHO that's not an acceptable solution, but I >

Re: "fromstart" syntax sync breaks state cache if using 64bit "long"

2011-06-18 Fir de Conversatie Bram Moolenaar
Björn Steinbrink wrote: > Using ":syn sync fromstart" on platforms where "long" is 64bits wide > breaks the state cache, causing vim to be very very slow on large files. > > How to reproduce: > :syntax on > :help :syn-sync > :syn sync fromstart > > > Here's what happens: > > When ":syn sync f

Re: "fromstart" syntax sync breaks state cache if using 64bit "long"

2011-06-13 Fir de Conversatie Bram Moolenaar
Björn Steinbrink wrote: > Using ":syn sync fromstart" on platforms where "long" is 64bits wide > breaks the state cache, causing vim to be very very slow on large files. > > How to reproduce: > :syntax on > :help :syn-sync > :syn sync fromstart > > > Here's what happens: > > When ":syn sync f

"fromstart" syntax sync breaks state cache if using 64bit "long"

2011-06-13 Fir de Conversatie Björn Steinbrink
Hi, Using ":syn sync fromstart" on platforms where "long" is 64bits wide breaks the state cache, causing vim to be very very slow on large files. How to reproduce: :syntax on :help :syn-sync :syn sync fromstart Here's what happens: When ":syn sync fromstart" is used, vim sets minlines to MAXLN