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

Grainfmt: Add more locations into the parsetree to better place comments #2034

Open
phated opened this issue Feb 19, 2024 · 0 comments
Open
Labels
good second issue Great issues if you're familiar with contributing to Grain.

Comments

@phated
Copy link
Member

phated commented Feb 19, 2024

Currently, code like type Foo4<a /* Test comment */, b> = String will move the comment to after the comma, like type Foo4<a, /* Test comment */ b> = String. We should add the locations of commas, etc to the parsetree so we can place the comments more correctly.

@ospencer ospencer added the good second issue Great issues if you're familiar with contributing to Grain. label Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good second issue Great issues if you're familiar with contributing to Grain.
Projects
None yet
Development

No branches or pull requests

2 participants