Repository navigation
support if-local and if-const - #1160
Conversation
…upport_if_local_and_const
|
I've merged a separate bump for full-moon handling the Box stuff. Looks like CI is failing though. Could you also add some test cases and update the changelog? |
sounds good, will do! thanks for updating full-moon |
full_moon to 3.0.0
updated! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1160 +/- ##
=======================================
Coverage 96.46% 96.47%
=======================================
Files 16 16
Lines 5065 5129 +64
=======================================
+ Hits 4886 4948 +62
- Misses 179 181 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- Check for comments after `if` / `elseif`, which would format to `if --commentlocal x` - Check for comments after `=` sign - Bug where `elseif local` hanging would go to `elseiflocal`
Adds formatting support for Luau's
if local/if constcondition bindings and bumpsfull_moonfrom2.2.0to3.0.0to support parsing of this new syntax!Syntax follows this RFC
To bump full-moon, we'd need to update a lot of places to use
Boxbecause it currently won't compile, so happy to put up a separate PR for that if it's helpful