Skip to content

Commit ed9b996

Browse files
committed
inject proxy functions for use in luapad
it makes the function names blue and pretty
1 parent 2d85eff commit ed9b996

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lua/pac3/core/client/parts/proxy.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,6 +1643,8 @@ function PART:SetExpression(str, slot)
16431643
for name, func in pairs(PART.Inputs) do
16441644
lib[name] = function(...) return func(self, ...) end
16451645
end
1646+
--we'll use that in the luapad syntax highlighting
1647+
self.lib = lib
16461648

16471649
local ok, res = pac.CompileExpression(str, lib)
16481650
if ok then

0 commit comments

Comments
 (0)