Skip to content
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

Merged
merged 6 commits into from
Apr 10, 2024
Merged

Add basic support for MoonScript. #475

merged 6 commits into from
Apr 10, 2024

Conversation

iThorgrim
Copy link
Contributor

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.

ElunaLoader.cpp Outdated Show resolved Hide resolved
@iThorgrim
Copy link
Contributor Author

Thank you for your suggestions @Rochet2, they were all implemented 💯

@Rochet2 Rochet2 added build and removed build labels Apr 9, 2024
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";
Copy link
Member

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.

Copy link
Contributor Author

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 ;)

@Rochet2 Rochet2 merged commit a60f1ea into ElunaLuaEngine:master Apr 10, 2024
@iThorgrim iThorgrim deleted the moonscrit-support branch April 11, 2024 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants