-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make trailing
=
optional if Message has no value
- Loading branch information
Zibi Braniecki
committed
Oct 22, 2018
1 parent
bac1271
commit e71471b
Showing
4 changed files
with
292 additions
and
6 deletions.
There are no files selected for viewing
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
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
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,27 @@ | ||
key01 = Value | ||
key02 = Value | ||
.attr = Attribute | ||
key02 = Value | ||
.attr1 = Attribute 1 | ||
.attr2 = Attribute 2 | ||
key03 | ||
.attr = Attribute | ||
|
||
key04 | ||
.attr1 = Attribute 1 | ||
.attr2 = Attribute 2 | ||
|
||
# < whitespace > | ||
key05 | ||
.attr1 = Attribute 1 | ||
|
||
key06 = {""} | ||
# JUNK Missing value | ||
key07 = | ||
# JUNK Missing = | ||
key08 |
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,248 @@ | ||
{ | ||
"type": "Resource", | ||
"body": [ | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key01" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Value" | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key02" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Value" | ||
} | ||
] | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key02" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Value" | ||
} | ||
] | ||
}, | ||
"attributes": [ | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr1" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute 1" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr2" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute 2" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key03" | ||
}, | ||
"value": null, | ||
"attributes": [ | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key04" | ||
}, | ||
"value": null, | ||
"attributes": [ | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr1" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute 1" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr2" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute 2" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key05" | ||
}, | ||
"value": null, | ||
"attributes": [ | ||
{ | ||
"type": "Attribute", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "attr1" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "TextElement", | ||
"value": "Attribute 1" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"comment": { | ||
"type": "Comment", | ||
"content": " < whitespace >" | ||
} | ||
}, | ||
{ | ||
"type": "Message", | ||
"id": { | ||
"type": "Identifier", | ||
"name": "key06" | ||
}, | ||
"value": { | ||
"type": "Pattern", | ||
"elements": [ | ||
{ | ||
"type": "Placeable", | ||
"expression": { | ||
"type": "StringLiteral", | ||
"value": "" | ||
} | ||
} | ||
] | ||
}, | ||
"attributes": [], | ||
"comment": null | ||
}, | ||
{ | ||
"type": "Comment", | ||
"content": "JUNK Missing value" | ||
}, | ||
{ | ||
"type": "Junk", | ||
"annotations": [], | ||
"content": "key07 =\n" | ||
}, | ||
{ | ||
"type": "Comment", | ||
"content": "JUNK Missing =" | ||
}, | ||
{ | ||
"type": "Junk", | ||
"annotations": [], | ||
"content": "key08\n" | ||
} | ||
] | ||
} |