If this is the highlight for globals it looks like the scheme doesn't understand colon or dot notation for functions.
It highlights the whole thing as global.
Note that 'addon' in the partial screenshot I attached is in fact a local reference on top of the method being scoped under addon.
The same happens in the case of
Code:
local functions = {}
function functions.myFunc() -- < highlighted as global
-- blah
end
Edit
When using the default Lua syntax (or with
https://github.com/rorydriscoll/LuaSublime) I don't have this issue so that might help you spot the difference.