FPDoc parsing error for code that compiles OK
Summary
Source code found in the Lazarus LazUtils package causes a parser error in FPDoc. The source compiles OK using FPC 3.2.2. I tested with both FPDoc 3.2.2 and FPDoc 3.3.1 (9d6b66c9 2025-11-18), and both have the same errors:
Parser error: ../../../components/lazutils/lazlistclassesbase.pas (102,15): Expected "=" at token "Identifier TCapacityAccessor" in file ../../../components/lazutils/lazlistclassesbase.pas at line 102 column 15
Ignoring error, continuing with next unit (if any).
Source code: https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/components/lazutils/lazlistclasses.pas#L222-235
Parser error: ../../../components/lazutils/lazlistclasses.pas (228,15): Expected "=" at token "Identifier TCapacityAccessor" in file ../../../components/lazutils/lazlistclasses.pas at line 228 column 15
Ignoring error, continuing with next unit (if any).
Source code: https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/components/lazutils/lazlistclassesbase.pas#L95-111
It seems the passrc classes used in FPDoc do not support the syntax used in the examples.
System Information
- Operating system: Linux OpenSuSE Tumbleweed KDE 6 + X11
- Processor architecture: x86-64-
- Compiler version: 3.2, 3.3.1
- Device: Computer->
What is the current bug behavior?
The parser error causes help generation for the units to be terminated.
What is the expected (correct) behavior?
No parser error.