brandonwamboldt/sublime-nginx

feature request: inline LUA support

keen99 opened this issue · 2 comments

It would be really nice if this also supported lua ( _by_lua, by_lua_block, etc - see openresty). Ideally even with context sensitive comment characters (since -- is a comment in lua and # breaks it) - but I rather expect that might not be possible. :)

If nothing else, at least this block shouldn't break highlighting from the last " to EOF.

   ledge:bind("before_request", function(res)
        req_params.headers["Accept-Encoding"] = "gzip"
   end)

I suspect it's because "gzip" is an nginx keyword and matches a "should be followed by <on|off> and ;" type logic...

Lua block in st3 is now supported: #14

cant wait!