Wednesday, August 24, 2011

Re: #if 0 syntax folding

Christian Brabandt wrote:

> On Di, 23 Aug 2011, Christ van Willegen wrote:
>
> > Hello Christian,
> >
> > On Mon, Aug 22, 2011 at 22:35, Christian Brabandt <cblists@256bit.org> 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.wikipedia.org/wiki/Digraphs_and_trigraphs to see if I
> > guessed right to see if it was a C digraph (I've never used them
> > myself, all the keyboards I've used had # and {} on them ;-) )
> >
> > Just above the table that lists %: as a digraph for #, there's a table
> > of trigraphs mentioning ??= as well, but I didn't see that in the
> > syntax file. I guess this one has (almost completely?) fallen from
> > usage, but wouldn't it be more complete to also specify this trigraph
> > in the regular expression(s)? It's probably a PITA to support them,
> > but for completeness sake...
>
> Thanks for mentioning it. I didn't even know, that those features are
> supported by the preprocessor. Anyway, here is an updated patch, that
> also supports ??= as trigraph for #.
>
> Bram can then decide, whether he likes to support this for C syntax
> files or not.

I don't like the use of ??= or %: instead of #. I see no good reason
for it, other than that some standard allows it. C99 contains a few bad
ideas...


--
The MS-Windows registry is no more hostile than any other bunch of state
information... that is held in a binary format... a format that nobody
understands... and is replicated and cached in a complex and largely
undocumented way... and contains large amounts of duplicate and obfuscated
information... (Ben Peterson)

/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

--
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

No comments: