-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Stray @ signs parsed in JSDoc #43580
Comments
Related to #38922 a bit, but in this case there is whitespace on either side of the "@" sign so it should make the parsing easier. |
Seems like an |
We nailed down the rules for the left side in #39371 (comment) and implemented that fix in #42364. I think a fix to the right side should be similarly conservative, and only start a tag before non-whitespace. (Barring data that shows that this is a big problem in practice, in which case we should do a similar analysis to the one I did for #39371.) Edit: Because this isn't part of the jsdoc documentation, a lone |
Bug Report
π Search Terms
jsdoc at sign
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
JSDoc parsed (in Monaco hover etc) as if the bare '@' sign itself is a separate JSDoc tag.
π Expected behavior
JSDoc parsed where the "The @ sign from the email" is all the documentation of the return type.
The text was updated successfully, but these errors were encountered: