In order to get comments to appear on functions that also have tags (e.g @native
), I placed them at the top above the comment describing what the function does.
This behavior no longer works and no comments will be displayed, however, comments do now appear if the attribute is first and the comments are above the attributes. This kind of sucks because I made a lot of functions in my codebase that have comments with the attributes above.
-- this will now appear
@native
local function myFunction()
end
This is no longer working:
@native
-- this does not appear anymore :(
local function myFunction()
end