forked from projectfluent/fluent.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixtures for parser bug: placeables should be allowed at the beginnin…
…g and end of line
- Loading branch information
Showing
3 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
fluent-syntax/test/fixtures_behavior/placeable_at_line_extremes.ftl
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
key1 = | ||
{ foo } | ||
key2 = | ||
Foo { foo } | ||
key3 = | ||
{ foo } Foo |
This file contains 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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
key = | ||
A multiline message with a { placeable } | ||
at the end of line. The message should | ||
consist of three lines of text. |
42 changes: 42 additions & 0 deletions
42
fluent-syntax/test/fixtures_structure/placeable_at_eol.json
This file contains 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"type": "Resource", | ||
"body": [ | ||
{ | ||
"type": "Message", | ||
"span": { | ||
"type": "Span", | ||
"start": 0, | ||
"end": 130 | ||
}, | ||
"annotations": [], | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "A multiline message with a " | ||
}, | ||
{ | ||
"type": "MessageReference", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "placeable" | ||
} | ||
}, | ||
{ | ||
"type": "TextElement", | ||
"value": "\nat the end of line. The message should\nconsist of three lines of text." | ||
} | ||
] | ||
}, | ||
"attributes": null, | ||
"tags": null, | ||
"comment": null | ||
} | ||
], | ||
"comment": null | ||
} |