Loading ...
Sorry, an error occurred while loading the content.

Re: Java indenting

Expand Messages
  • Bram Moolenaar
    ... You are completely right, of course. In C we have the same problem. Strange, I should think I would have noticed this error before... -- ... (-: Funny
    Message 1 of 5 , Feb 28, 2002
    • 0 Attachment
      Alexey Marinichev wrote:

      > > > Any chance then the following could be corrected?
      > > > String a[] = {"aaa", "bbb",
      > > > "ccc", "ddd"};
      > [...]
      > > In C this isn't possible, only () is used. Thus the 'cindent' doesn't
      > > recognize the {} block of the continuation line. Perhaps this can be
      > > added, since for C it wouldn't make a difference. Except that when you
      > > accidentally use {} instead of () you wouldn't notice it.
      > [...]
      >
      > Is it a gcc extension then? I haven't written C in a while, I'm starting to
      > forget details...
      >
      > This program seems to compile (with gcc) all right:
      >
      > #include <stdio.h>
      >
      > main()
      > {
      > char *a[] = {"aaa", "bbb",
      > "ccc", NULL};
      > char **b;

      You are completely right, of course. In C we have the same problem.
      Strange, I should think I would have noticed this error before...

      --
      From "know your smileys":
      :-) Funny
      |-) Funny Oriental
      (-: Funny Australian

      /// Bram Moolenaar -- Bram@... -- http://www.moolenaar.net \\\
      /// Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim \\\
      \\\ Project leader for A-A-P -- http://www.a-a-p.org ///
      \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///
    Your message has been successfully submitted and would be delivered to recipients shortly.