bugfix: args contain lua closing long bracket will break the generated Lua code snippet