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

Confusing comment indentation inside anonymous procedure sections #144

Open
zaneduffield opened this issue Feb 18, 2025 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@zaneduffield
Copy link
Collaborator

Here's an example (with the formatting I expect)

begin
  var A :=
      procedure
      //
      type
        //
        B = Integer;
      //
      begin
      end;
end;

this is formatted as

begin
  var A :=
      procedure
          //
      type
        //
        B = Integer;
          //
      begin
      end;
end;

the issue is that the comments are 'inside' the line, and are 'continued' much like any other kind of wrapped line.

@zaneduffield
Copy link
Collaborator Author

The conversation on https://github.com/integrated-application-development/pasfmt/pull/143/files#r1958900867 includes a test that should be added once this is fixed.

@jgardn3r jgardn3r added the enhancement New feature or request label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants