-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
LuaDoc parsed incorrectly #392
Comments
As a workaround I've disabled |
The original annotation syntax is three horizontal bars. I can provide an option to turn off the compatibility of the annotation syntax with two horizontal bars. However, syntax coloring is static and cannot be turned off. |
My code is not meant to be EmmyLua and I'm not familiar with that. I'm using LDoc with LuaDoc comments. Previous versions didn't have this syntax highlighting or problem. I've reverted to an earlier version to avoid this issue. I'm not sure that its ideal to have both of these behaviors in the same extension. |
If I'm not mistaken, LuaDoc does not support parameters type (name only). In turn, |
I think doc annotations parser should be configurable or dropped otherwise from this LSP. I'm having issues with
|
I made a feature request to make it possible to disable EmmyLua engine: #2369 |
Is there a way to generate docs by ldoc from lua-language-server annotations? I have met an error:
Looks like ldoc doesn't recognize |
@linrongbin16 See my reply: #2391 |
hi @hinell , thanks for reply.
|
@hinell now I'm fixing the {
"diagnostics.disable": ["luadoc-miss-module-name"],
} update: seems there's no way to use ldoc to generate docs for lua-language-server annotations, they're not compatible at all. |
Yes. I've also been looking for a good Lua API doc generator, but there none. We have a lemmy-help but it's quite limited.
|
Describe the bug
Code with LuaDoc comments are being parsed in some way that is incorrect. I assume as some sort of other annotation that is not LuaDoc.
Expected behavior
Because LuaDoc is in the comments and is not Lua code I would expect that it wouldn't be parsed and marked as a warning.
Screenshots
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: