-
Notifications
You must be signed in to change notification settings - Fork 360
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
Add basic support for MoonScript. #475
Conversation
Thank you for your suggestions @Rochet2, they were all implemented 💯 |
ElunaLoader.cpp
Outdated
@@ -135,7 +135,8 @@ void ElunaLoader::ReadFiles(lua_State* L, std::string path) | |||
{ | |||
lua_requirepath += | |||
path + "/?.lua;" + | |||
path + "/?.ext;"; | |||
path + "/?.ext;" + | |||
path + "/?.moon"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think there is a missing ;
here when comparing against the old code where ext;
had a semicolon right after it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't seen that, good point ;)
I have added a basic support for MoonScript.
The modification just "read" the .moon file and add a loadstring() to the top of the script.