jiwonz
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.  It would look much cleaner if we could hide the inlay hints for `*error-type*`. I think showing this...
 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...