rokucommunity / brighterscript-formatter

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

Properly formats an interface that includes subs, functions #46

Closed markwpearce closed 2 years ago

markwpearce commented 2 years ago

Adds new logic that allows the indent/outdent code to ignore certain indents based on the "parent" indent.

In particular, if the parent token is interface, then indents for sub and function are ignored.

TwitchBronBron commented 2 years ago

Looks great. Thanks!