summaryrefslogtreecommitdiff
path: root/tests/examplefiles/json
diff options
context:
space:
mode:
authorMatthäus G. Chajdas <dev@anteru.net>2021-12-31 15:20:07 +0100
committerMatthäus G. Chajdas <dev@anteru.net>2021-12-31 15:20:07 +0100
commita5c32c8a1e9c33b70187718abafb5f2fe96bac31 (patch)
treea331748aa00f7a1a91a62e3341982efc956cec80 /tests/examplefiles/json
parent8c6df84de066b5493fd1e3816cc2030a95efa2aa (diff)
downloadpygments-git-a5c32c8a1e9c33b70187718abafb5f2fe96bac31.tar.gz
Add more whitespace variants to JSON test content.
Diffstat (limited to 'tests/examplefiles/json')
-rw-r--r--tests/examplefiles/json/json-with-spaces.json10
-rw-r--r--tests/examplefiles/json/json-with-spaces.json.output38
2 files changed, 47 insertions, 1 deletions
diff --git a/tests/examplefiles/json/json-with-spaces.json b/tests/examplefiles/json/json-with-spaces.json
index 5228745e..c58047bc 100644
--- a/tests/examplefiles/json/json-with-spaces.json
+++ b/tests/examplefiles/json/json-with-spaces.json
@@ -1 +1,9 @@
-{"foo" : "bar"} \ No newline at end of file
+{"foo" : "bar" , "baz": [ { "a" :
+ 23 }
+
+ ], "fobar": [ { "c" :
+ 23 }
+
+ ]
+
+} \ No newline at end of file
diff --git a/tests/examplefiles/json/json-with-spaces.json.output b/tests/examplefiles/json/json-with-spaces.json.output
index 335e6a70..ffb953d3 100644
--- a/tests/examplefiles/json/json-with-spaces.json.output
+++ b/tests/examplefiles/json/json-with-spaces.json.output
@@ -4,5 +4,43 @@
':' Punctuation
' ' Text.Whitespace
'"bar"' Literal.String.Double
+' ' Text.Whitespace
+',' Punctuation
+' ' Text.Whitespace
+'"baz"' Name.Tag
+':' Punctuation
+' ' Text.Whitespace
+'[' Punctuation
+'\t' Text.Whitespace
+'{' Punctuation
+' ' Text.Whitespace
+'"a"' Name.Tag
+' ' Text.Whitespace
+':' Punctuation
+'\n ' Text.Whitespace
+'23' Literal.Number.Integer
+'\t' Text.Whitespace
+'}' Punctuation
+'\n \n ' Text.Whitespace
+'],' Punctuation
+' ' Text.Whitespace
+'"fobar"' Name.Tag
+':' Punctuation
+' ' Text.Whitespace
+'[' Punctuation
+'\t' Text.Whitespace
+'{' Punctuation
+' ' Text.Whitespace
+'"c"' Name.Tag
+' ' Text.Whitespace
+':' Punctuation
+'\n\t ' Text.Whitespace
+'23' Literal.Number.Integer
+'\t\t' Text.Whitespace
+'}' Punctuation
+'\n\t\t\n\t\t' Text.Whitespace
+']' Punctuation
+'\n\n' Text.Whitespace
+
'}' Punctuation
'\n' Text.Whitespace