grain
grain copied to clipboard
Grainformat: Wipes out docblock comments between types declared together
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)