summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Hatch <tim@timhatch.com>2014-10-08 18:55:35 -0700
committerTim Hatch <tim@timhatch.com>2014-10-08 18:55:35 -0700
commit87781e3aa6748b035a822a3a8fdf2cedd53d478b (patch)
tree85da94f2627df7405c2a989f4e430ddda3bcf9db /tests
parent6f82393fe38d73ffc2ef61b16722c603e41b6ec2 (diff)
downloadpygments-87781e3aa6748b035a822a3a8fdf2cedd53d478b.tar.gz
Add JSON-LD Lexer.
Adapted from PR 289.
Diffstat (limited to 'tests')
-rw-r--r--tests/examplefiles/example.jsonld27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/examplefiles/example.jsonld b/tests/examplefiles/example.jsonld
new file mode 100644
index 00000000..48787d75
--- /dev/null
+++ b/tests/examplefiles/example.jsonld
@@ -0,0 +1,27 @@
+{
+ "@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
+ }
+ }
+}