grain icon indicating copy to clipboard operation
grain copied to clipboard

Grainformat: Wipes out docblock comments between types declared together

Open phated opened this issue 3 years ago • 0 comments

Given the following chunk of code, the formatter wipes out the comment:

enum EventType {
  Enter,
  Exit,
},
/**
 *   An event is the start or end of a token amongst other events.
 *   Tokens can “contain” other tokens, even though they are stored in a flat
 *   list, through `enter`ing before them, and `exit`ing after them.
 */
type Event = (EventType, Token, TokenizeContext)

phated avatar Jun 10 '22 22:06 phated