diff options
| author | Georg Brandl <georg@python.org> | 2021-01-18 21:24:00 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2021-01-18 22:08:36 +0100 |
| commit | 2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch) | |
| tree | 809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/jsonld/example.txt | |
| parent | f0445be718da83541ea3401aad882f3937147263 (diff) | |
| download | pygments-git-examplefiles.tar.gz | |
Move test_examplefiles to new tests/lexers scheme.examplefiles
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 |
