Warren - 2009-10-20

I have found many parts of my code where conditional defines are breaking the Jedi Code Formatter parser.

Here's an easy way to kill the parser:

    type
       TFoo = class({$ifdef A}BaseA{$else}BaseB{$endif})

The same thing is true of ifdefs inside a try/except block:

        try
            ….
        except
        {$ifdef A}
            DoSomething;
        {$else}
          on E: Exception do
          begin
             DoSomethingElse;
          end;
        {$endif}
        end;
   
Those are just two of many that came up when I was trying this against my code.

Warren