summaryrefslogtreecommitdiff
path: root/tests/lexers/jsonld/example.txt
blob: 07a374e8bfd7858e86a88605f523625aff1e4601 (plain)
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
---input---
{
  "@context": {
     "schema": "http://schema.org/",
     "name": "schema:name",
     "body": "schema:articleBody",
     "words": "schema:wordCount",
     "post": {
       "@id": "schema:blogPost",
       "@container": "@index"
     }
  },
  "@id": "http://example.com/",
  "@type": "schema:Blog",
  "name": "World Financial News",
  "post": {
     "en": {
       "@id": "http://example.com/posts/1/en",
       "body": "World commodities were up today with heavy trading of crude oil...",
       "words": 1539
     },
     "de": {
       "@id": "http://example.com/posts/1/de",
       "body": "Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl...",
       "words": 1204
     }
  }
}

---tokens---
'{'           Punctuation
'\n  '        Text
'"@context"'  Name.Decorator
':'           Punctuation
' '           Text
'{'           Punctuation
'\n     '     Text
'"schema"'    Name.Tag
':'           Punctuation
' '           Text
'"http://schema.org/"' Literal.String.Double
','           Punctuation
'\n     '     Text
'"name"'      Name.Tag
':'           Punctuation
' '           Text
'"schema:name"' Literal.String.Double
','           Punctuation
'\n     '     Text
'"body"'      Name.Tag
':'           Punctuation
' '           Text
'"schema:articleBody"' Literal.String.Double
','           Punctuation
'\n     '     Text
'"words"'     Name.Tag
':'           Punctuation
' '           Text
'"schema:wordCount"' Literal.String.Double
','           Punctuation
'\n     '     Text
'"post"'      Name.Tag
':'           Punctuation
' '           Text
'{'           Punctuation
'\n       '   Text
'"@id"'       Name.Decorator
':'           Punctuation
' '           Text
'"schema:blogPost"' Literal.String.Double
','           Punctuation
'\n       '   Text
'"@container"' Name.Decorator
':'           Punctuation
' '           Text
'"@index"'    Literal.String.Double
'\n     '     Text
'}'           Punctuation
'\n  '        Text
'},'          Punctuation
'\n  '        Text
'"@id"'       Name.Decorator
':'           Punctuation
' '           Text
'"http://example.com/"' Literal.String.Double
','           Punctuation
'\n  '        Text
'"@type"'     Name.Decorator
':'           Punctuation
' '           Text
'"schema:Blog"' Literal.String.Double
','           Punctuation
'\n  '        Text
'"name"'      Name.Tag
':'           Punctuation
' '           Text
'"World Financial News"' Literal.String.Double
','           Punctuation
'\n  '        Text
'"post"'      Name.Tag
':'           Punctuation
' '           Text
'{'           Punctuation
'\n     '     Text
'"en"'        Name.Tag
':'           Punctuation
' '           Text
'{'           Punctuation
'\n       '   Text
'"@id"'       Name.Decorator
':'           Punctuation
' '           Text
'"http://example.com/posts/1/en"' Literal.String.Double
','           Punctuation
'\n       '   Text
'"body"'      Name.Tag
':'           Punctuation
' '           Text
'"World commodities were up today with heavy trading of crude oil..."' Literal.String.Double
','           Punctuation
'\n       '   Text
'"words"'     Name.Tag
':'           Punctuation
' '           Text
'1539'        Literal.Number.Integer
'\n     '     Text
'},'          Punctuation
'\n     '     Text
'"de"'        Name.Tag
':'           Punctuation
' '           Text
'{'           Punctuation
'\n       '   Text
'"@id"'       Name.Decorator
':'           Punctuation
' '           Text
'"http://example.com/posts/1/de"' Literal.String.Double
','           Punctuation
'\n       '   Text
'"body"'      Name.Tag
':'           Punctuation
' '           Text
'"Die Werte an Warenbörsen stiegen im Sog eines starken Handels von Rohöl..."' Literal.String.Double
','           Punctuation
'\n       '   Text
'"words"'     Name.Tag
':'           Punctuation
' '           Text
'1204'        Literal.Number.Integer
'\n     '     Text
'}'           Punctuation
'\n  '        Text
'}'           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text