The Doe editor rewritten in Lua