Commit 754de7818c90ee0e3895af89f53ba08ba51fd53c

CupOfTea696 2014-09-22T19:35:15

Punctuation improvements

diff --git a/components/prism-json.js b/components/prism-json.js
index d0fcb92..9b94b57 100644
--- a/components/prism-json.js
+++ b/components/prism-json.js
@@ -2,7 +2,7 @@ Prism.languages.json = {
     'property': /"(\b|\B)[\w-]+"(?=\s*:)/ig,
     'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
     'string': /"(?!:)(\\?[^'"])*?"(?!:)/g,
-    'punctuation': /[\{\};:]/g,
+    'punctuation': /[{}[\]:,]/g,
     'boolean': /\b(true|false)\b/gi,
     'null': /\bnull\b/gi,
 };
\ No newline at end of file
diff --git a/components/prism-jsonp.js b/components/prism-jsonp.js
index 29a4589..9024da7 100644
--- a/components/prism-jsonp.js
+++ b/components/prism-jsonp.js
@@ -5,5 +5,5 @@ Prism.languages.jsonp = Prism.languages.extend('json',{
 			punctuation: /\(/
 		}
 	},
-    'punctuation': /[\{\}\);:]/g,
+    'punctuation': /[{}[\]);:,]/g,
 });
\ No newline at end of file