Thursday, June 9, 2016

Re: folding csharp

On Thursday, June 9, 2016 at 1:31:14 PM UTC+2, Efraim Yawitz wrote:
> On Thu, Jun 9, 2016 at 1:46 PM, Christian Brabandt <cbl...@256bit.org> wrote:
> Am 2016-06-09 10:44, schrieb Ni Va:
>
>
> Hi,
>
>
>
> I open a csharp source code file into Vim then do this :
>
>
>
> echo "ft=".&ft . ' syn='.&syn . ' fdm='.&fdm | syn sync fromstart
>
>
>
>
>
> it outputs that : ft=cs syn=cs fdm=syntax
>
>
>
> and syn sync fromstart does not make folding wokring on, I don't understand why
>
>
>
>
> It probably depends on the syntax file, what sections are actually folded.
>
>
>
> Look into syntax file to find out.
>
>
>
>
>
> Best,
>
> Christian
>
>
> C# has an idea of 'regions' which fold according to preprocessor directives, and I think that is all that is implemented in the syntax file.
>
>
> It is easy enough to copy the line:
>
> syn region    cBlock        start="{" end="}" transparent fold
>
>
> from the C syntax file and execute it to get some more extensive folding.
>
>
> Ephraim

No section of the csharp code is folded. I join you the syntax file of vim7.4.1901 recompiled ten days ago

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment