{ "type": "Resource", "body": [ { "type": "Message", "id": { "type": "Identifier", "name": "key01" }, "value": { "type": "Pattern", "elements": [ { "type": "TextElement", "value": "\tValue 01" } ] }, "attributes": [], "comment": { "type": "Comment", "content": "OK (tab after = is part of the value)" } }, { "type": "Comment", "content": "Error (tab before =)" }, { "type": "Junk", "annotations": [], "content": "key02\t= Value 02\n\n" }, { "type": "Comment", "content": "Error (tab is not a valid indent)" }, { "type": "Junk", "annotations": [], "content": "key03 =\n\tThis line isn't properly indented.\n\n" }, { "type": "Message", "id": { "type": "Identifier", "name": "key04" }, "value": { "type": "Pattern", "elements": [ { "type": "TextElement", "value": "This line is indented by 4 spaces," } ] }, "attributes": [], "comment": { "type": "Comment", "content": "Partial Error (tab is not a valid indent)" } }, { "type": "Junk", "annotations": [], "content": "\twhereas this line by 1 tab.\n\n" }, { "type": "Message", "id": { "type": "Identifier", "name": "key05" }, "value": { "type": "Pattern", "elements": [ { "type": "TextElement", "value": "\t" } ] }, "attributes": [], "comment": { "type": "Comment", "content": "OK (value is a single tab)" } }, { "type": "Message", "id": { "type": "Identifier", "name": "key06" }, "value": null, "attributes": [ { "type": "Attribute", "id": { "type": "Identifier", "name": "attr" }, "value": { "type": "Pattern", "elements": [ { "type": "TextElement", "value": "\t\t" } ] } } ], "comment": { "type": "Comment", "content": "OK (attribute value is two tabs)" } }, { "type": "Message", "id": { "type": "Identifier", "name": "key07" }, "value": null, "attributes": [ { "type": "Attribute", "id": { "type": "Identifier", "name": "good" }, "value": { "type": "Pattern", "elements": [ { "type": "TextElement", "value": "Spaces as indent" } ] } } ], "comment": { "type": "Comment", "content": "Partial Error (tab is not a valid indent)" } }, { "type": "Junk", "annotations": [], "content": "\t.bad = Tab as indent\n" } ] }