Commit 9a32837d5270584f43d4af2594d7b1409d91bccf

CupOfTea696 2014-09-22T02:10:43

Property fix

1
2
3
4
5
6
7
8
9
10
11
diff --git a/components/prism-json.js b/components/prism-json.js
index 5fdf90e..5825b01 100644
--- a/components/prism-json.js
+++ b/components/prism-json.js
@@ -1,5 +1,5 @@
 Prism.languages.json = {
-	'property': /(\b|\B)[\w-]+(?=\s*:)/ig,
+	'property': /("|')(\b|\B)[\w-]+\1(?=\s*:)/ig,
     'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
 	'string': /("|')(?!:)(\\?[^'"])*?\1(?!:)/g,
 	'punctuation': /[\{\};:]/g,