Sublime Forum

ST3 - Entering Lua Function defined on a table

#1

Just downloaded Sublime Text 3 and I’m testing out the jump into function with Lua. The code base I’m working in has a lot of the functions that are attached to tables. Something like this:

-- Lib is another global table
Lib.UIElement = {};

function Lib.UIElement.new()

end

Example of this function being called in another file. This is what I press F12 on to jump into the function.

element.hudContainer = Lib.UIElement.new();

When I press F12 on an instance of this function it can’t find the above function and instead only finds functions named “new” that are not created as part of a table.

Is there something I’m missing or is this a limitation of this feature working with Lua?

Thanks,

Joe

0 Likes