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

Add a new node for Doc comments #202

Open
aspeddro opened this issue Mar 6, 2023 · 0 comments
Open

Add a new node for Doc comments #202

aspeddro opened this issue Mar 6, 2023 · 0 comments

Comments

@aspeddro
Copy link
Collaborator

aspeddro commented Mar 6, 2023

ReScript v10.1 introduced docstrings for values, types, and modules.

  • /**Docstring*/: before value and types
  • /***Toplevel docstrins*/: top level modules

The two comments above are parsed as comment.

We can create two nodes (doc_comment and mod_comment) for both types of comments. It would be useful to do markdown injection.

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