[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: ANN: ZeroBrane Studio IDE v0.30; now with stack/variable information and love2d support
- From: Paul K <paulclinger@...>
- Date: Fri, 29 Jun 2012 10:21:58 -0700
> I'm not sure why it's causing an error, but it seems like a problem
> with wxlua.CompileLuaScript() that doesn't recognize shebangs
> (ZeroBrane Studio doesn't modify the shebang in any way, it just
> styles it, which hides # and makes the font larger). I'll see if there
> is an alternative or a fix for this.
I just did a bit of testing and it seems like shebang is not
recognized by loadstring() either:
local ok, err = loadstring([[#!lua
prints "nil [string "#!lua..."]:1: unexpected symbol near '#'"
loadfile() handles shebang fine though. I'll probably switch from
wxlua.CompileLuaScript() to loadfile().