I am trying to get a list of all the syntax errors in a Lua script, using MoonSharp. I have the following code, where the variable code
is the Lua script:
try
{
Script.RunString(code);
return "";
}
catch (SyntaxErrorException ex)
{
return Convert.ToString(ex);
}
But it only gives me the first syntax error. Is there a way to get a list of all errors? Would a different library to MoonSharp be a good idea?