Kyku wrote:
> Maybe it's not about implementing half of a compiler, but only the
> features that are used most often. What's more, if one has:
>
> struct foo { /* ... */ };
> typedef struct foo foo;
>
> int main() {
> foo myfoo;
> /* ... */
> }
>
> then omnicompletion works for myfoo, even if it doesn't see "struct"
> before foo.
This is correct C, and Vim knows about typedefs, thus it works.
You are using confusing names here. If you have:
struct foo { /* ... */ };
typedef struct foo foo_t;
int main() {
foo myfoo;
/* ... */
}
The it wouldn't work, because it's not valid C.
--
Even got a Datapoint 3600(?) with a DD50 connector instead of the
usual DB25... what a nightmare trying to figure out the pinout
for *that* with no spex...
/// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ download, build and distribute -- http://www.A-A-P.org ///
\\\ help me help AIDS victims -- http://www.ICCF.nl ///