diff --git a/test/fixtures/special_chars.ftl b/test/fixtures/special_chars.ftl new file mode 100644 index 0000000..5224bad --- /dev/null +++ b/test/fixtures/special_chars.ftl @@ -0,0 +1,14 @@ +## OK + +bracket-inline = [Value] +dot-inline = .Value +star-inline = *Value + +## ERRORS + +bracket-newline = + [Value] +dot-newline = + .Value +star-newline = + *Value diff --git a/test/fixtures/special_chars.json b/test/fixtures/special_chars.json new file mode 100644 index 0000000..77f2ff6 --- /dev/null +++ b/test/fixtures/special_chars.json @@ -0,0 +1,82 @@ +{ + "type": "Resource", + "body": [ + { + "type": "GroupComment", + "content": "OK" + }, + { + "type": "Message", + "id": { + "type": "Identifier", + "name": "bracket-inline" + }, + "value": { + "type": "Pattern", + "elements": [ + { + "type": "TextElement", + "value": "[Value]" + } + ] + }, + "attributes": [], + "comment": null + }, + { + "type": "Message", + "id": { + "type": "Identifier", + "name": "dot-inline" + }, + "value": { + "type": "Pattern", + "elements": [ + { + "type": "TextElement", + "value": ".Value" + } + ] + }, + "attributes": [], + "comment": null + }, + { + "type": "Message", + "id": { + "type": "Identifier", + "name": "star-inline" + }, + "value": { + "type": "Pattern", + "elements": [ + { + "type": "TextElement", + "value": "*Value" + } + ] + }, + "attributes": [], + "comment": null + }, + { + "type": "GroupComment", + "content": "ERRORS" + }, + { + "type": "Junk", + "annotations": [], + "content": "bracket-newline =\n [Value]\n" + }, + { + "type": "Junk", + "annotations": [], + "content": "dot-newline =\n .Value\n" + }, + { + "type": "Junk", + "annotations": [], + "content": "star-newline =\n *Value\n" + } + ] +}