Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robdaemon opened this issue Jan 19, 2025 · 1 comment
Assignees

Comments

@robdaemon
Copy link

robdaemon commented Jan 19, 2025

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.

@GitMensch
Copy link
Contributor

Agreed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants