2010-10-25 00:05:49 -07:00
|
|
|
local _g = getfenv(0)
|
2011-01-22 22:23:29 -08:00
|
|
|
|
|
|
|
do
|
|
|
|
local status, result
|
|
|
|
status, result = pcall(require, "_moo.builtin")
|
|
|
|
if status then
|
|
|
|
result._inject(_g)
|
|
|
|
else
|
|
|
|
print(result)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2011-01-22 22:12:20 -08:00
|
|
|
local moo = require("moo")
|
|
|
|
_g.app = moo.App.instance()
|
2010-12-12 02:29:20 -08:00
|
|
|
_g.editor = _g.app.get_editor()
|