1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
{
"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"
}
]
}