BrianGarland / vscode-rpgfree

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

Update RpgleFree.js #65

Closed DavidShears closed 1 year ago

DavidShears commented 1 year ago

Don't trigger endblock when line is a comment. Related to BrianGarland/vscode-rpgfree#45

Tested with different types of line after the end of the datastructure (D/C/blank)

Two minor caveats:

  1. If an unrelated comment is on the line immediately after the DS then it will be pulled within the end-ds tag.

  2. Issue 32 "Converted RPG Fixed DS code does not include End-Ds; if last DS in conversion set" still applies. So if you convert the code this fix will remove the spurious end-ds tags within the datastructure, but if you don't select a subsequent D/C/blank line then no end-ds will be added.