Skip to content
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

[Feature]: Expose comment contents as a separate node #22

Open
rschristian opened this issue Nov 13, 2024 · 0 comments
Open

[Feature]: Expose comment contents as a separate node #22

rschristian opened this issue Nov 13, 2024 · 0 comments

Comments

@rschristian
Copy link

Posting from a couple downstream highlighting issues and didn't see anything here so I thought I'd open an issue.

The treesitter-nvim highlights for jsdoc seem to be struggling and/or limited due to the lack of a node around the comment contents, and I was wondering if there was any interest in implementing that?

For example:

/** @param {string} bufferContent */
                                // ^ Can't distinguish the trailing `/` of the comment vs a delimiter _in_ the comment, so it gets picked up as the latter
/**
 * @param {string} bufferContent
 *                 ^ Picked up as a variable parameter
 */

/** @param {string} bufferContent */
                 // ^ Cannot be distinguished as a variable parameter due to being a singular line

Purely from what I've been told (I'm still learning how these things all piece together) this is a problem for this repo if it were going to be addressed. Please let me know if that's wrong, happy to take this elsewhere. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant