Kampfkarren / selene

A blazing-fast modern Lua linter written in Rust
https://kampfkarren.github.io/selene/
Mozilla Public License 2.0
591 stars 75 forks source link

Include a LuaJIT standard library #154

Open Dekkonot opened 3 years ago

Dekkonot commented 3 years ago

LuaJIT is, obviously, extremely common in the Lua world. It also has its own unique libraries and a few backported functions.

Given it's based on Lua 5.1 and has very few actual syntax extensions, it seems like a great candidate for Selene, and I'd suggest making it be included by default under the name luajit.

The two notable syntax extensions are:

Dekkonot commented 3 years ago

Would be interested to know your thoughts on this @Kampfkarren. Especially the goto syntax, since supporting that would require messing with full-moon (I'll open an issue on that repo if you're cool with supporting LuaJIT).

Kampfkarren commented 3 years ago

I'm fine supporting it, I think it's in scope. As long as it is a crate feature like roblox, then it seems fine to me.