Skip to content
New issue

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

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

Already on GitHub? # to your account

Issues with #! format: noindent and comments #728

Closed
sloede opened this issue Jun 2, 2023 · 2 comments
Closed

Issues with #! format: noindent and comments #728

sloede opened this issue Jun 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@sloede
Copy link

sloede commented Jun 2, 2023

There seem to be some slight hiccups with the newly added (#724) #! format: noindent that concerns comments:

Comments not attached to a (non-indented) code entity will actually get indented. The - from what I can tell - correctly formatted snippet

begin
#! format: noindent

# This is OK
function foo end

# This is not

end

turns into

begin
#! format: noindent

# This is OK
function foo end

  # This is not

end

Even weirder, the following

begin
#! format: noindent

end

is turned into

begin
  #! format: noindent

end

Is this a feature or a bug?

@domluna
Copy link
Owner

domluna commented Jun 4, 2023

looks like a bug to me

@domluna domluna added the bug Something isn't working label Jun 4, 2023
@sloede
Copy link
Author

sloede commented Jun 4, 2023

Unfortunately, I am not sure how to dig deeper on this but I'd be happy to assist with testing etc if helpful.

domluna added a commit that referenced this issue Jun 7, 2023
@domluna domluna closed this as completed in fd4fae3 Jun 7, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants