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

fix(grainfmt): Removed a trailing comma after a spread in a list, and fixed escaped single quote #923

Merged
merged 9 commits into from
Sep 29, 2021

Conversation

marcusroberts
Copy link
Member

@marcusroberts marcusroberts commented Sep 25, 2021

Adding a comma after a spread in a list was a syntax error

[a,...b,]

Keep array set assignments on the same line as the =

Use constants direct from source to avoid losing any programmer intention regarding structure/format e.g. keep chars specified in the same format, numbers in the same base, etc.

Copy link
Member

@phated phated left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this change after #926 ?

compiler/grainformat/reformat.re Outdated Show resolved Hide resolved
@marcusroberts
Copy link
Member Author

Will this change after #926 ?

I think it looks better on the same line anyway, so I'd leave it as is.

@marcusroberts
Copy link
Member Author

marcusroberts commented Sep 26, 2021

Working now #930 is fixed

compiler/grainformat/reformat.re Show resolved Hide resolved
compiler/grainformat/reformat.re Outdated Show resolved Hide resolved
Copy link
Member

@peblair peblair left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let it rock!

@marcusroberts marcusroberts merged commit 3a138d6 into main Sep 29, 2021
@marcusroberts marcusroberts deleted the marcus/fix_formatter branch September 29, 2021 20:15
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.

4 participants