On Wed, Aug 20, 2008 at 9:19 AM, Peter Odding <xolox@home.nl> wrote:
E. Wing wrote:
Sorry I can't help you with regards to luaL_loadfile(), however I /might/
have an alternate solution... My favorite text editor is Vim and it supports
user-defined actions on events like saving a file. I've set up such an
action that runs `luac -p ...` when I save a Lua script. If luac finds any
parse errors in my script then Vim will show me a list of those errors and
jump to the first one. I'm not suggesting you switch text editors but maybe
your text editor can be scripted in a similar manner?
Could you share how you set this up, perhaps add it to the wiki?
Alex