[Lazarus] Lazarus parser error on "vargars"

Mattias Gaertner nc-gaertnma at netcologne.de
Fri Apr 18 00:56:54 CEST 2008


On Thu, 17 Apr 2008 15:48:44 -0300
Steve Howe <howesteve at gmail.com> 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.

Mattias



More information about the Lazarus mailing list