You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
have the following in a plugin.lua, so that I can get undefined globals. The problem is that everything is an undefined global at this point, including ipairs, tonumber, etc.. Is there a way to get the state in a plugin after the libraries are parsed, or to tell if the onSetText is run during the preload?
function Util.compileState(uri, text)
local options = {
special = config.get(uri, "Lua.runtime.special"),
unicodeName = config.get(uri, "Lua.runtime.unicodeName"),
nonstandardSymbol = utility.arrayToHash(config.get(uri, "Lua.runtime.nonstandardSymbol")),
}
local version = config.get(uri, "Lua.runtime.version")
local state = parser.compile(text, "Lua", version, options)
return state
end
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
have the following in a plugin.lua, so that I can get undefined globals. The problem is that everything is an undefined global at this point, including ipairs, tonumber, etc.. Is there a way to get the state in a plugin after the libraries are parsed, or to tell if the onSetText is run during the preload?
Beta Was this translation helpful? Give feedback.
All reactions