Commit ba9c2b614514e4f70269bc5fad0da97dd38acc20

CupOfTea696 2014-09-22T19:44:52

Added operator

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/components/prism-json.js b/components/prism-json.js
index 9b94b57..f2750ad 100644
--- a/components/prism-json.js
+++ b/components/prism-json.js
@@ -2,7 +2,8 @@ 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,
+    'operator': /:/g,
     'boolean': /\b(true|false)\b/gi,
     'null': /\bnull\b/gi,
 };
\ No newline at end of file