lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

A.S. Bradbury wrote:
On Wed, Aug 20, 2008 at 9:19 AM, Peter Odding <> 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?


Actually I'm writing a Lua file type plug-in for Vim because $VIMRUNTIME/ftplugin/lua.vim doesn't really do anything useful. I was planning to submit my first version to the list tonight for comments. Let me just add some docs and I'll get back to you in an hour or so :)

 - Peter Odding