#if 0 syntax folding

2011-08-19 Thread benjamin schnitzler
Hi, recently I updated my OS and doing this, vim must have been updated, too. I use now vim version 7.3.266 and unfortunatly, if I want to hide c-code in #if 0 ... #endif, code does not get folded anymore. Can anyone confirm this behaviour? Maybe I screw something up, but I didn't change anything s

Re: #if 0 syntax folding

2011-08-22 Thread Ben
I wanted to add, that it is still highlighted correctly (as comment), it is just not folded. On Aug 19, 5:14 pm, benjamin schnitzler wrote: > Hi, > recently I updated my OS and doing this, vim must have been updated, too. > I use now vim version 7.3.266 and unfortunatly, if I want to hide c-code

Re: #if 0 syntax folding

2011-08-22 Thread Christian Brabandt
Hi Ben! On Mo, 22 Aug 2011, Ben wrote: > I wanted to add, that it is still highlighted correctly (as comment), > it is just not folded. What is your foldmethod set to? regards, Christian -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the t

Re: #if 0 syntax folding

2011-08-22 Thread Charles Campbell
Christian Brabandt wrote: Hi Ben! On Mo, 22 Aug 2011, Ben wrote: I wanted to add, that it is still highlighted correctly (as comment), it is just not folded. What is your foldmethod set to? Hello, The following short C file illustrates this problem: /* abc.c: */ #include #

Re: #if 0 syntax folding

2011-08-22 Thread Christian Brabandt
Hi Charles! On Mo, 22 Aug 2011, Charles Campbell wrote: > The following short C file illustrates this problem: > > /* abc.c: */ > #include > > #if 0 > int main() > { > printf("testing\n"); > return 0; > } > #endif > > /* Modelines: > * vim: fdm=syntax > */ > > The #if 0 ... #endif region

Re: #if 0 syntax folding

2011-08-23 Thread Christian Brabandt
Hi On Di, 23 Aug 2011, Christ van Willegen wrote: > Hello Christian, > > On Mon, Aug 22, 2011 at 22:35, Christian Brabandt wrote: > > I see. Attached patch fixes it. > > I was curious and read your patch. The "%:" I saw in the patch made me > (even more) curious, and I read > http://en.wikiped

Re: #if 0 syntax folding

2011-08-24 Thread Charles Campbell
Christian Brabandt wrote: Hi On Di, 23 Aug 2011, Christ van Willegen wrote: Hello Christian, On Mon, Aug 22, 2011 at 22:35, Christian Brabandt wrote: I see. Attached patch fixes it. I was curious and read your patch. The "%:" I saw in the patch made me (even more) curious

Re: #if 0 syntax folding

2011-08-24 Thread Christian Brabandt
Hi Charles! On Mi, 24 Aug 2011, Charles Campbell wrote: > I suggest emailing a copy of your patch directly to Bram; I have the > impression that he only skims the vim_use list and may otherwise > miss it. It was copied to vim-dev, so Bram should have seen it. regards, Christian -- -- You rec

Re: #if 0 syntax folding

2011-08-24 Thread Bram Moolenaar
Christian Brabandt wrote: > On Di, 23 Aug 2011, Christ van Willegen wrote: > > > Hello Christian, > > > > On Mon, Aug 22, 2011 at 22:35, Christian Brabandt > > wrote: > > > I see. Attached patch fixes it. > > > > I was curious and read your patch. The "%:" I saw in the patch made me > > (eve

Re: #if 0 syntax folding

2011-08-26 Thread benjamin schnitzler
Hi, On Mon, Aug 22, 2011 at 10:35 PM, Christian Brabandt wrote: > Hi Charles! > > On Mo, 22 Aug 2011, Charles Campbell wrote: > >> The following short C file illustrates this problem: >> >> /* abc.c: */ >> #include >> >> #if 0 >> int main() >> { >> printf("testing\n"); >> return 0; >> } >> #endi