[fpc-devel] fpdoc fails to get full declaration of constants
Vincent Snijders
vincent.snijders at gmail.com
Wed Aug 4 14:51:55 CEST 2010
2010/8/4 Marco van de Voort <marcov at stack.nl>:
> In our previous episode, Graeme Geldenhuys said:
>> >
>> > Writing it out is not a problem.
>> > If you take care of the const node, I'll handle the writing.
>>
>> Thanks guys, this is much appreciated. I'll take a close look at the last
>> few commits of fpdoc and fcl-passrc to learn some of the code. I'll be
>> using the parser a lot more in two of my projects I am working on, so I'll
>> need to find my way around that code anyway.
>
> See also comments in mantis 16342, and realize that the fact that semicolons
> can be omitted (see example) and that library is an own token are the main
> things to watch out for.
Additionally fpdoc cannot parse the following const declaration:
const
DefaultLogFont: TLogFont = (lfHeight:0;
lfWidth:0;
lfEscapement:0;
lfOrientation:0;
lfWeight:0;
lfItalic:0;
lfUnderline:0;
lfStrikeOut:0;
lfCharSet:0;
lfOutPrecision:0;
lfClipPrecision:0;
lfQuality:0;
lfPitchAndFamily:0;
lfFaceName:'default';
);
Note the semi colon before the ) at the end.
Shall I create a new bug report for it? Or is it better to just remove
that semi colon. The compiler seems to accept both syntaxes.
Vincent
More information about the fpc-devel
mailing list