darklua icon indicating copy to clipboard operation
darklua copied to clipboard

Add `convert_luau_numbers` rule

Open jiwonz opened this issue 11 months ago • 1 comments

Closes #256

Changes

  • Add a rule convert_luau_numbers that converts luau's number literal syntax.
  • Add a simple tests for a rule convert_luau_numbers.

jiwonz avatar Jan 29 '25 10:01 jiwonz

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.

ewd3v avatar Feb 03 '25 14:02 ewd3v

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

jLn0n avatar Jun 04 '25 17:06 jLn0n

Closed since this has been merged in https://github.com/seaofvoices/darklua/pull/274

jeparlefrancais avatar Jun 19 '25 20:06 jeparlefrancais