moonbitlang / core

MoonBit's Core library
https://moonbitlang.com/
Apache License 2.0
507 stars 54 forks source link

Incorrect scope of comments after formatting in enum and struct #428

Closed CAIMEOX closed 4 weeks ago

CAIMEOX commented 2 months ago

Before:

pub enum T {
  A(@immutable_vec.ImmutableVec[T])
  /// Comment
}

After:

pub enum T {
  A(@immutable_vec.ImmutableVec[T])
}
/// Comment

This also happens in struct in which the field contains @.

bobzhang commented 1 month ago

fixed

Yoorkin commented 4 weeks ago

fixed