diff options
Diffstat (limited to 'tests/lexers/jsonld/example.txt')
| -rw-r--r-- | tests/lexers/jsonld/example.txt | 157 |
1 files changed, 157 insertions, 0 deletions
diff --git a/tests/lexers/jsonld/example.txt b/tests/lexers/jsonld/example.txt new file mode 100644 index 00000000..07a374e8 --- /dev/null +++ b/tests/lexers/jsonld/example.txt @@ -0,0 +1,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 |
