Add `convert_luau_numbers` rule
Closes #256
Changes
- Add a rule
convert_luau_numbersthat converts luau's number literal syntax. - Add a simple tests for a rule
convert_luau_numbers.
I can't see a reason why you would want this, but it might be cool to atleast have an option for it to convert all number literals (so even hex literals like 0xFFFFFFF, like it's doing right now), instead of it only converting binary literals and removing underscores.
I can't see a reason why you would want this, but it might be cool to atleast have an option for it to convert all number literals (so even hex literals like 0xFFFFFFF, like it's doing right now), instead of it only converting binary literals and removing underscores.
oh, it is for lua 5.1 compatibility thingy
Closed since this has been merged in https://github.com/seaofvoices/darklua/pull/274