On Fri, Nov 26, 2010 at 9:06 AM, Andre Arpin <ar...@kingston.net> wrote: >> >> I have applied a much simpler patch in CVS. I assume that you want to >> ignore the "#!/bin/lua" at the beginning so I check for "#!" and rem >> out the first line if it exists, this maintains line numbers. >> >> http://wxlua.cvs.sourceforge.net/viewvc/wxlua/wxLua/samples/editor.wx.lua? > r1=1.60&r2=1.61 >> > > Actually the test should be for '#' not '#!' to be consistent with lua.
I'm going to leave it as #!. I assume that the reason that Lua only checks for a '#' is that in C it's simplest to just check a single character. Having a single '#' at the beginning is invalid, e.g. "#string" and should error out. Regards, John ------------------------------------------------------------------------------ Increase Visibility of Your 3D Game App & Earn a Chance To Win $500! Tap into the largest installed PC base & get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users