Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-04

Lazarus parser error on "vargars"

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Steve Howe

Hello all,

For a long time, what appears to be a bug in Lazarus' code parser have been bothering me: it appears it cannot parse the "varargs" keyword. Every time it's asked to do code completion, it will break and complain at the first "varargs", such as:

errorSAXFunc = procedure  (ctx: Pointer; const msg: PChar); cdecl varargs;

The error message is:

libxml2.pas(1462,73) Error: ; expected, but varargs found

Since I'm using the libxml2 [1] library extensively on my code and it's filled with "varargs" procedure types, the Lazarus code completion is unusable.

The code itself is valid compiles fine on FreePascal, of course.

Is there any way to fix that ?

Thanks.

Reply by email

Mattias Gaertner
to Steve Howe
Show quoted text 21 lines
Hello all, For a long time, what appears to be a bug in Lazarus' code parser have been bothering me: it appears it cannot parse the "varargs" keyword. Every time it's asked to do code completion, it will break and complain at the first "varargs", such as: errorSAXFunc = procedure (ctx: Pointer; const msg: PChar); cdecl varargs; The error message is: libxml2.pas(1462,73) Error: ; expected, but varargs found Since I'm using the libxml2 [1] library extensively on my code and it's filled with "varargs" procedure types, the Lazarus code completion is unusable. The code itself is valid compiles fine on FreePascal, of course. Is there any way to fix that ?

Fixed.

Mattias

Reply by email

Steve Howe
to Mattias Gaertner

Hello Mattias,

Show quoted text 26 lines
On Thu, 17 Apr 2008 15:48:44 -0300 Steve Howe wrote: > Hello all, > > For a long time, what appears to be a bug in Lazarus' code parser > have been bothering me: it appears it cannot parse the "varargs" > keyword. Every time it's asked to do code completion, it will break > and complain at the first "varargs", such as: > > errorSAXFunc = procedure (ctx: Pointer; const msg: PChar); cdecl > varargs; > > The error message is: > > libxml2.pas(1462,73) Error: ; expected, but varargs found > > Since I'm using the libxml2 [1] library extensively on my code and > it's filled with "varargs" procedure types, the Lazarus code > completion is unusable. > > The code itself is valid compiles fine on FreePascal, of course. > > Is there any way to fix that ? Fixed.

Thanks, it works now. Much appreciated.

Best Regards, Steve Howe

Reply by email