rokucommunity / brighterscript-formatter

A code formatter for BrighterScript (and BrightScript)
MIT License
15 stars 5 forks source link

Parse all code as brighterscript to improve formatting context #61

Closed TwitchBronBron closed 2 years ago

TwitchBronBron commented 2 years ago

Fixes a bug that would de-indent lines that have a .catch method, but only when inside functions using custom as CustomType syntax.

The underlying issue was that we were parsing all files as brightscript instead of brighterscript