rokucommunity / brighterscript-formatter

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

Add `insertSpaceAfterConditionalCompileSymbol`, fix conditional compile formatting #87

Closed TwitchBronBron closed 8 months ago

TwitchBronBron commented 8 months ago

Adds insertSpaceAfterConditionalCompileSymbol formatting option which will add a single space (true) or remove all whitespace (false) between the # and the following keyword.

Also fixes indentation formatting related to conditional compile tokens that have spaces after the # (like # if, # else if, etc...).

format-cond-compile

Depends on https://github.com/rokucommunity/brighterscript/pull/1090