aiken-lang / aiken

A modern smart contract platform for Cardano
https://aiken-lang.org
Apache License 2.0
470 stars 91 forks source link

Comments don't look good after formatting #946

Closed dmitrystas closed 4 months ago

dmitrystas commented 4 months ago

What Git revision are you using?

https://github.com/aiken-lang/aiken/tree/v1.0.26-alpha

What operating system are you using, and which version?

Describe what the problem is?

Sometimes we need to temporarily comment some part of the code like this one

let Output {
  address: own_address,
  // value: own_value,
  ..
} = own_output

but after aiken fmt command it looks like this

let Output { address: own_address, .. } =
  // value: own_value,
  own_output

i.e. the comments are placed outside the block

What should be the expected behavior?

Сomments should not be moved outside the block in this case

rvcas commented 4 months ago

thanks for reporting