[Metalua-list] Patch

Alexander Gladysh agladysh at gmail.com
Thu Sep 4 03:45:55 GMT+2 2008

> The initial # comment should be fixed in mlp.chunk(), at the end of
> mlp_misc.lua, but it requires to fiddle with the lexer. A hack like this
> might do a temporary fix, but it breaks through the lexer's morally
> protected API:


In Lua this is handled very early (and only for files, not for
strings) -- file loader simply skips first line if it starts with #.
See luaL_loadfile in lauxlib.c. I think we may follow Lua here.


More information about the Metalua-list mailing list