-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ---@return <type>? #desc #80
Comments
IIRC |
You're right that it's not on the lua_ls annotations wiki, but the language server does respect Edit: opened an issue in the lua_ls repo asking for clarification on this. |
I can add support for that. |
The
@return
tag usesTy
for second field which doesn't supportOpt
<type>?
, this seems to results in the following behaviour:Yields
This may not be part of EmmyLua spec but lua_ls specific, but considering
---@param name? <type>
works I would expect the same for---@return <type>? #desc
.---@return string|nil #foo
works fine.The text was updated successfully, but these errors were encountered: