Repository navigation
Specify parsing Lua version - #263
Conversation
|
I don't think I understand the benefits for darklua? Fullmoon already is reading Luau syntax |
Actually, There is no direct benefit to darklua, but it seems closer to a measure for the ecosystem. If you use darklua as a dependency and use something like full_moon lua53 in that project, the shared full_moon dependency will load luau and lua53 features at the same time, and if there is no separate lua version determination, full_moon will parse based on the loaded features by default, which will cause an error. CavefulGames/dalbit#4 And since darklua only parses lua, I don't think there's any downside to explicitly setting darklua's parsing code target. |
Closes #262
Specify parsing Lua version for
full_moonSimply replaced
full_moon::parse(code)byfull_moon::parse_fallible(code, LuaVersion::luau())insrc/parser.rs.Tests were successful.