View Single Post
06-26-13, 02:06 AM   #9
Dridzt
A Pyroguard Emberseer
 
Dridzt's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2005
Posts: 1,359
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.
Attached Thumbnails
Click image for larger version

Name:	sub3wowlua.png
Views:	725
Size:	8.8 KB
ID:	7785  

Last edited by Dridzt : 06-26-13 at 10:45 AM.
  Reply With Quote