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

Create generic ftl serializer #241

Merged
merged 30 commits into from
Nov 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
b860d59
Start writing up the serializer
Jun 23, 2020
2eee000
Made sure indentation is handled properly
Jun 23, 2020
2c2f006
Started handling select expressions
Jun 23, 2020
f8f3f72
Switched " " to "\t" to make recognising indents easier
Jun 24, 2020
a650135
Everything from TypeScript's "Serialize resource" test suite passes
Jun 24, 2020
f95efce
Added the rest of the tests
Jun 24, 2020
34f7a93
Added a test to make sure subsequent entries with a comment aren't se…
Jun 26, 2020
0b32979
Merge branch '0.11.0' into serializer
RumovZ Nov 8, 2021
f3378e2
Fix serializer for fluent-syntax 0.11.0
RumovZ Nov 8, 2021
b627c05
Fix empty lines in messages being swallowed
RumovZ Nov 9, 2021
ef6d1a8
Fix indentation of default asterisk
RumovZ Nov 9, 2021
1801439
Fix lints
RumovZ Nov 10, 2021
0b04aad
Merge branch 'master' into serializer
RumovZ Nov 10, 2021
df8c691
Make `serialize()` generic over `Slice`
RumovZ Nov 11, 2021
3ff29d5
Merge remote-tracking branch 'upstream/master' into serializer
RumovZ Nov 7, 2022
1b340e7
Handle rare edge case of line terminating `\r`
RumovZ Apr 25, 2022
099995a
Fix redundant line break after after junk
RumovZ Apr 25, 2022
c009674
Align parsing of CRLF-terminated patterns
RumovZ Apr 25, 2022
c469cf1
Don't break line before leading dot pattern
RumovZ Apr 25, 2022
6fbf7f9
Don't implicitly trim when writing literals
RumovZ Apr 26, 2022
24e6d49
Replace roundtrip tests with manipulation tests
RumovZ Nov 8, 2022
99cd884
Reintroduce roundtrip tests
RumovZ Nov 8, 2022
40e1a42
Fix clippy lints
RumovZ Nov 8, 2022
5da5604
Document serializer mod and pub functions
RumovZ Nov 8, 2022
a1ae7dd
Replace unwrap with expect
RumovZ Nov 8, 2022
2e9c63f
Remove redundant error propogation
RumovZ Nov 8, 2022
4c23b54
BLACKLIST -> IGNORE_LIST
RumovZ Nov 9, 2022
6fa7576
Fix typo
RumovZ Nov 9, 2022
c0e1722
Mention serializer on changelog
RumovZ Nov 9, 2022
c534eb7
Revert c009674 and add crlf.ftl to ignore list
RumovZ Nov 9, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fluent-syntax/src/parser/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ where
b'\r' if self.is_byte_at(b'\n', self.ptr + 1) => {
self.ptr += 1;
return Ok((
start_pos,
self.ptr - 1,
start_pos + 1,
gregtatum marked this conversation as resolved.
Show resolved Hide resolved
self.ptr,
text_element_type,
TextElementTermination::Crlf,
));
Expand Down