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

End-of-line comments [tracking issue] #772

Open
11 tasks done
avh4 opened this issue Sep 13, 2022 · 0 comments
Open
11 tasks done

End-of-line comments [tracking issue] #772

avh4 opened this issue Sep 13, 2022 · 0 comments

Comments

@avh4
Copy link
Owner

avh4 commented Sep 13, 2022

This is a high-level tracking issue for end-of-line comments and having them attach to the back of the previous token instead of being attached the front of the next token.

To be considered:

  • if/else branch bodies
  • case branch bodies
  • (maybe?) tag arguments in types (Tag --z\n a --x\n b --y\n)
  • (maybe?) let definition bodies
  • (maybe?) top-level definition bodies

Already implemented:

  • Allow end-of-line comments #162
    • after record fields in types
    • after record fields in expressions
    • after values in list expressions
    • after values in tuple expressions
    • after entries in tuple types
    • union type definitions
    • after record fields in record updates
    • after record fields in record extension types
    • in function types
    • in binary operator expressions
    • in cons patterns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant