lua-users home
lua-l archive

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


On 09/05/2012 14.27, Egor Skriptunoff wrote:
Excellent!  So, we can convert .lua to .bat with three-line-prefix!

::lua::--[[
@setlocal&  set luafile=%0&  if exist %0.bat set luafile=%0.bat
@lua52.exe %luafile% %*&  exit /b ]]

Nice :-) And for 5.1 the first line can be:

  rem=rem --[[

The above line gets printed but no 'rem' Lua variable is set.

--
  Enrico