Function comments don't display when tags are above

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

Thank you for the report! This is certainly not intended behavior, but ultimately this is very low priority since you can readily place the comments above instead. The issue has been placed on our backlog, but probably won’t be resolved until we have a larger look at what documentation comments are for Luau generally which we expect to do in the new year.

1 Like