fpdoc cannot parse after "protected const" section
Original Reporter info from Mantis: Blaazen @Blaazen
-
Reporter name: Vojtech Cihak
Original Reporter info from Mantis: Blaazen @Blaazen
- Reporter name: Vojtech Cihak
Description:
See demo. FPDoc fails after "protected const" section. It creates incomplete docs.
Output:
[v1@msi-NB fpdoc]$ fpdoc --format=html --input=test.pas --package=html
FPDoc - Free Pascal Documentation Tool
Version 2.7.1 [2014/02/15]
(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, sg@freepascal.org
(c) 2005 - 2012 various FPC contributors
test.pas(16,4): Expected "=" at token "Identifier I" in file test.pas at line 16 column 4
Writing 4 pages...
Using built-in CSS file
Creating plus image
Creating minus image
Done.
[v1@msi-NB fpdoc]$
Steps to reproduce:
Copy/Paste this following code (or download attached file).
Comandline$ fpdoc --format=html --input=test.pas --package=html
unit test;
{$mode objfpc}
interface
uses classes;
type
TTest = class
private
FMy: Integer;
protected const
cConst = 10;
protected
I: Integer; //fpdoc expects constant here
procedure Go;
public
procedure Run;
property My: Integer read FMy write FMy;
end;
implementation
procedure TTest.Go;
begin
end;
procedure TTest.Run;
begin
end;
end.
Mantis conversion info:
- Mantis ID: 25720
- OS: Linux
- OS Build: Chakra 64-bit
- Build: 26787
- Platform: amd64
- Version: 2.7.1
- Fixed in version: 3.0.0
- Fixed in revision: 26876 (#e2882446)
- Target version: 3.0.0