Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment indentation wrong before "else if" #68

Open
zeronil opened this issue Jan 11, 2023 · 2 comments
Open

Comment indentation wrong before "else if" #68

zeronil opened this issue Jan 11, 2023 · 2 comments

Comments

@zeronil
Copy link

zeronil commented Jan 11, 2023

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".

2023-01-11_12-43-49

@TwitchBronBron
Copy link
Member

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
typescript-indent

C#
csharp-indent

@TwitchBronBron
Copy link
Member

Moving this issue into brighterscript-formatter since that's where the logic would be implemented.

@TwitchBronBron TwitchBronBron transferred this issue from rokucommunity/vscode-brightscript-language Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants