Home Download Buy Blog Forum Support

ST3 - Entering Lua Function defined on a table

ST3 - Entering Lua Function defined on a table

Postby canstein on Wed Aug 14, 2013 3:58 am

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:

Code: Select all
-- Lib is another global table
Lib.UIElement = {};

function Lib.UIElement.new()


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

Code: Select all
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?


Posts: 6
Joined: Thu Dec 16, 2010 12:25 am

Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot], jps and 12 guests