Closed luis-soares-sky closed 2 years ago
Thanks for finding this... I'll look into it, because I was the one that broke it.
I think the correct formatting for this should be:
for i = -buffer to buffer
' code
end for
Does that sound good to you?
Yep, that sounds good. Thank you!
Fwiw, we've been seeing some other cases involving minus signs working correctly, so the one I described above seems to be a lone quirky edge case.
Also, apologies, I opened this in the wrong repo... meant to open on https://github.com/rokucommunity/vscode-brightscript-language. 🤦♂️
@luis-soares-sky - Actually it should be in https://github.com/rokucommunity/brighterscript-formatter
I'll move it now.
Fixed by #49
Versions affected: >= 2.26.0
We use the
"editor.formatOnSave": true,
. When saving, spaces are getting obliterated, which results in invalid code.