BrianGarland / vscode-rpgfree

Visual Studio Code extension to convert fixed format RPGLE to free format
MIT License
18 stars 11 forks source link

ILEDocs Fixed-Form Start Comment Block not Converted Correctly #88

Closed BrianGodsend closed 1 year ago

BrianGodsend commented 1 year ago

For fixed-format RPG, the ILEDocs uses the pattern /** to start a comment block. When converted to **FREE format, the start comment block is a triple-forward-slash, ///. However the Convert to Free Format is not converting the documentation marker correctly.

Fixed form RPG:

     /**
      * Issue 88:
      * The ILEDocs fixed format start comment block is not
      * converted correctly.
      */
     D idx             s              5p 0 inz
       *inLR = *ON;
       return;

Wrong output:

**FREE
       //*
       // Issue 88:
       // The ILEDocs fixed format start comment block is not
       // converted correctly.
       ///
       Dcl-S idx          Packed(5:0) inz;
       *inLR = *ON;
       return;

Expected output:

**FREE
       ///
       // Issue 88:
       // The ILEDocs fixed format start comment block is not
       // converted correctly.
       ///
       Dcl-S idx          Packed(5:0) inz;
       *inLR = *ON;
       return;