-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Fluent tidy improvements #147396
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
base: master
Are you sure you want to change the base?
Fluent tidy improvements #147396
Conversation
Looks great, nice that we can use builtin things to parse it Have you test it locally? |
A bit, it detects what it's supposed to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great, thanks! Do you think we could also use the parser for sorting the records?
It's the part I'm unclear about. The current seems to only move the line where the message is defined, but I don't know if it moves its content too. And what happens about comments, etc etc. I can look into it in a follow-up if you want? |
Sure, it seems more complicated. |
8a4e7df
to
831cdf3
Compare
Applied suggestions. |
Looks good, thanks! @bors r+ rollup |
831cdf3
to
d53eb91
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
d53eb91
to
831cdf3
Compare
This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
Sorry, pushed another code to this branch. Fixed it. |
@bors r=kobzol rollup |
Follow-up of #147345 and of #147191.
It uses
fluent_syntax
to parsefluent
files (but not for blessing, not even sure how the current one works).I also added an
assert
to ensure we never go to previous situation where thefluent
files were actually not checked at all.cc @Kivooeo
r? kobzol