[fpc-devel] fpdoc fails to get full declaration of constants
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:
DefaultLogFont: TLogFont = (lfHeight:0;
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.
More information about the fpc-devel