-
-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support goto
statements.
#224
Comments
Relies on a full-moon update. |
#229 makes this possible, though a separate PR will need to turn on lua52 feature flag. |
@Kampfkarren I'm still getting this error on 0.24.0 w/ |
You need specifically a selene built with the lua52 feature flag. I'm not sure if that's available, or if that would even work. |
It's more viable today than when this issue was first posted though |
I'd have to build one my self? do you have an example build command for this? |
You would need to edit Cargo.toml in selene to include lua52 for full-moon |
ok. that seems to have worked. I'm not sure its entirely right. # Cargo.toml
[workspace.dependencies]
full_moon = { version = "0.17.0", features = ["lua52"] } #selene/Cargo.toml
[features]
default = [ "roblox", "lua52" ]
lua52 = []
tracy-profiling = ["profiling/profile-with-tracy","tracy-client"]
roblox = ["selene-lib/roblox", "full_moon/roblox", "ureq"] |
That looks right to me, though we'd need a bit more work ourselves if we wanted to ship that. |
Is there any reason not to? |
@JohnnyMorganz would be able to answer if the backwards incompatibilities with Lua 5.2 and Luau are problematic. There are more than zero. Ideally we want full-moon to be able to dynamically switch capabilities. |
Yup, see JohnnyMorganz/StyLua#407 |
any updates on this? or any way to work with |
Work is being done in the parser (https://github.com/Kampfkarren/full-moon) to be able to support swapping out languages easier, we can't really move forward on it until that's done. No ETA but it recently picked up more steam. |
Anyone have found a way to ignore I have tried to use this in my std="lua52+vim" |
This still needs a full-moon update, but everything is already merged into full-moon that makes this possible thankfully. ETA could be a week or so with dedicated effort. |
Currently Selene doesn't really like my usage of
goto
labels, as shown below. It'd be nice if it was supported.The text was updated successfully, but these errors were encountered: