bitwisecook / vscode-tcl

Tcl for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=bitwisecook.tcl
MIT License
39 stars 19 forks source link

Inline elseif are not well indented #25

Open goren74 opened 1 year ago

goren74 commented 1 year ago

Hello, seems like there is an issue when formatting inlined elseif which have multiple condition inside if :

image

if I put each elseif in a new line or if i put all conditions in a single line, formatting is good.

Thanks

bitwisecook commented 1 year ago

The internal style guide I wrote for our code prohibits that style, but I'm not against it. I'll happily accept a PR fixing it, but right now I'm working on deeper fixes to the grammar.