-
Notifications
You must be signed in to change notification settings - Fork 102
Create generic ftl serializer #241
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
Merged
Merged
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
b860d59
Start writing up the serializer
2eee000
Made sure indentation is handled properly
2c2f006
Started handling select expressions
f8f3f72
Switched " " to "\t" to make recognising indents easier
a650135
Everything from TypeScript's "Serialize resource" test suite passes
f95efce
Added the rest of the tests
34f7a93
Added a test to make sure subsequent entries with a comment aren't se…
0b32979
Merge branch '0.11.0' into serializer
RumovZ f3378e2
Fix serializer for fluent-syntax 0.11.0
RumovZ b627c05
Fix empty lines in messages being swallowed
RumovZ ef6d1a8
Fix indentation of default asterisk
RumovZ 1801439
Fix lints
RumovZ 0b04aad
Merge branch 'master' into serializer
RumovZ df8c691
Make `serialize()` generic over `Slice`
RumovZ 3ff29d5
Merge remote-tracking branch 'upstream/master' into serializer
RumovZ 1b340e7
Handle rare edge case of line terminating `\r`
RumovZ 099995a
Fix redundant line break after after junk
RumovZ c009674
Align parsing of CRLF-terminated patterns
RumovZ c469cf1
Don't break line before leading dot pattern
RumovZ 6fbf7f9
Don't implicitly trim when writing literals
RumovZ 24e6d49
Replace roundtrip tests with manipulation tests
RumovZ 99cd884
Reintroduce roundtrip tests
RumovZ 40e1a42
Fix clippy lints
RumovZ 5da5604
Document serializer mod and pub functions
RumovZ a1ae7dd
Replace unwrap with expect
RumovZ 2e9c63f
Remove redundant error propogation
RumovZ 4c23b54
BLACKLIST -> IGNORE_LIST
RumovZ 6fa7576
Fix typo
RumovZ c0e1722
Mention serializer on changelog
RumovZ c534eb7
Revert c009674 and add crlf.ftl to ignore list
RumovZ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# Changelog | ||
|
||
## Unreleased | ||
|
||
- Add module `serializer`. | ||
- … | ||
|
||
## fluent-syntax 0.11.0 (February 9, 2021) | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,4 +48,5 @@ | |
//! ``` | ||
pub mod ast; | ||
pub mod parser; | ||
pub mod serializer; | ||
pub mod unicode; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.