Skip to content

JSDoc @example highlighting only works if the example is right next to the comment * #1235

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
Anthony-Gaudino opened this issue May 15, 2021 · 0 comments

Comments

@Anthony-Gaudino
Copy link

On following example the @example of JSDoc is highlighted:

/**
 * @example
 *let a = 10;  // This line is highlighted.
 */

But, if there's a space between the * and the code it doesn't highlight:

/**
 * @example
 * let a = 10;  // This line is not highlighted.
 */
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant