Open zeronil opened 1 year ago
The same thing happens in the typescript formatter and the C# formatters. However, I'd be open to seeing this added as an option for the formatter. Would you have any interested in helping? The change would need to happen in this file in the brighterscript-formatter project.
TypeScript
C#
Moving this issue into brighterscript-formatter since that's where the logic would be implemented.
Formatter aligns a comment above an "else if" with the code in the conditional block rather than with "else if" statement. If an "else if" appears directly below a comment, then the comment should be aligned with the "else if".