#56 implementation variables don't parse correctly

v1.0 (example)
open
nobody
5
2006-12-05
2006-12-05
David Dombrowsky
No

any time a 'var' is found on its own in the implementation, pas2dox opens a C comment block, but never closes it. Observe:

----------------------------
unit Dictate
[...]
implementation

uses WaveUtilities, WavDataEntry, DBClient, Login, SkinUtils, DBINI_Fnc;

{$R *.DFM}

var
MyError, Flags: longint;

{*
* OpenMedia: open media
}
procedure TfrmDictate.OpenMedia;
[...]
-----------------------------

OpenMedia will NEVER be parsed correctly. No combination of comment hacking provides a workaround.

is this a pas2dox error, or an error in the pascal source?

Discussion

  • Darren Bowles
    Darren Bowles
    2006-12-28

    Logged In: YES
    user_id=73730
    Originator: NO

    In my code, the commenting of the var section is closed by the appearance of implementation keyword.

    I'll look into whether the valid syntax, in the meantime, you can skip troublesome sections of code by using {$ifdef DOXYGEN_SKIP} ... {$endif} statements.

     
  • I have the same problem. If at the beginning of implementation part is some vars, or constants (not in funciton or procedure body) then pas2dox opens a C comment block, but never closes it.