superbol-studio-oss icon indicating copy to clipboard operation
superbol-studio-oss copied to clipboard

LSP formatter incorrectly changes indentation of "source format is free" line

Open robdaemon opened this issue 9 months ago • 1 comments

Given this input:

       >>SOURCE FORMAT IS FREE
identification division.
program-id. test.

environment division.

data division.

procedure division.

    display 'hello world'.
    stop run.

invoking the LSP formatter will shift the >>SOURCE FORMAT IS FREE line all the way to the left:

>>SOURCE FORMAT IS FREE
identification division.
program-id. test.

environment division.

data division.

procedure division.

    display 'hello world'.
    stop run.

which generates a 'note' from GnuCOBOL:

src/test.cbl:1: note: free format detected
    1 > >>SOURCE FORMAT IS FREE
    2 | identification division.
    3 | program-id. test.

I don't believe it should be modifying this line.

robdaemon avatar Jan 19 '25 00:01 robdaemon