Skip to content

Conversation

avh4
Copy link
Contributor

@avh4 avh4 commented Nov 28, 2022

  • retain comments in case expressions:
    • between case keyword and condition
    • between condition and of keyword
    • between of keyword and first branch
    • for each branch:
      • between pattern and ->
      • between -> and expression
      • after the expression (indented)
    • between branches
  • retain comments in if expressions:
    • for each "if/then" clause:
      • between if keyword and condition
      • between condition and then keyword
      • between then keyword and expression
      • between expression and else keyword
    • between else keyword and if keyword (will be moved to after if)
    • between else keyword and final else expression
    • after final else expression (indented)

@avh4 avh4 mentioned this pull request Nov 28, 2022
31 tasks
@robinheghan robinheghan merged commit dab9b3f into gren-lang:main Nov 28, 2022
@avh4 avh4 deleted the retain-comments/5-branch-expressions branch November 30, 2022 00:56
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

Successfully merging this pull request may close these issues.

2 participants