I have noticed that if you define a function as a property of an object, the resulting “end” doesn’t line up correctly.
example:
[lua]function new(kind)
if(kind == 1) then
foo = display.newImageRect(“foo.png”, 16, 16);
foo.collision = function(self, e)
end
end
end[/lua]
Notice the “end” for the end of the foo.collision = function… line is aligned with the “end” for the enclosing if statement.
Can we get it so that the “end” for the foo.collision = function… line aligns itself to the beginning of the foo.collision line?
The way it is makes it very difficult to see if everything is ended correctly, plus it makes a visual mess of my code [import]uid: 5317 topic_id: 10997 reply_id: 310997[/import]