jiwonz

Results 18 issues of jiwonz

Closes #203 # Examples ## Input ```luau for i,v in {1,2,3} do print(i,v) end ``` ## Output ```lua do local _DARKLUA_REMOVE_GENERALIZED_ITERATION_iterdf0c36eb99574eba, _DARKLUA_REMOVE_GENERALIZED_ITERATION_invardf0c36eb99574eba, _DARKLUA_REMOVE_GENERALIZED_ITERATION_controldf0c36eb99574eba={1,2,3} if type(_DARKLUA_REMOVE_GENERALIZED_ITERATION_iterdf0c36eb99574eba)=='table'then local _m=getmetatable(_DARKLUA_REMOVE_GENERALIZED_ITERATION_iterdf0c36eb99574eba)if type(_m)=='table'and type(_m.__iter)=='function'then _DARKLUA_REMOVE_GENERALIZED_ITERATION_iterdf0c36eb99574eba,...

Closes #202 # Examples ## Case: There are `continue` and `break` together in a loop but there are more `continue` than `break` ### Input ```luau for i = 1, 10...

`inject_modules` rule would be great for injecting libraries and global functions too (exampe: injecting libraries of luau written in pure lua to emulate luau outside of luau) # Example ##...

Luau and Lua have different behavior between numeric field in table for example: Luau: ```luau { 1, [1] = "A" } -- { "A" } { [1] = "A", 1...

Add `remove_if_expression` rule which removes luau's if expression syntax from source then translate it into closure and if statement. Tests are succeeded. # Examples ## Input ```luau local a =...

Please note. This is just a minor feature request for visual. ![image](https://github.com/user-attachments/assets/10cb222b-c120-4fe0-901a-d5b2169872aa) It would look much cleaner if we could hide the inlay hints for `*error-type*`. I think showing this...

enhancement

![Image](https://github.com/user-attachments/assets/42a199e6-a8f6-4626-a372-df64e56a9a1c) If you look at the picture, Darklua sees the path require with the extension set as the path with the extension set explicitly and does not set the `.luau`...

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`.

Closes #262 Specify parsing Lua version for `full_moon` Simply replaced `full_moon::parse(code)` by `full_moon::parse_fallible(code, LuaVersion::luau())` in `src/parser.rs`. Tests were successful.

If you are depending on darklua and full_moon in a root project, and you add features that are incompatible with luau, such as lua53, to full_moon's features, the features will...