Skip to content

Commit

Permalink
Fixtures for parser bug: placeables should be allowed at the beginnin…
Browse files Browse the repository at this point in the history
…g and end of line
  • Loading branch information
stasm committed Apr 20, 2017
1 parent 8c6ab78 commit f195581
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
key1 =
{ foo }
key2 =
Foo { foo }
key3 =
{ foo } Foo
4 changes: 4 additions & 0 deletions fluent-syntax/test/fixtures_structure/placeable_at_eol.ftl
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 fluent-syntax/test/fixtures_structure/placeable_at_eol.json
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
}

0 comments on commit f195581

Please sign in to comment.