regex fixes Suggested by owner in #369
diff --git a/components/prism-json.js b/components/prism-json.js
index cd623e9..d0fcb92 100644
--- a/components/prism-json.js
+++ b/components/prism-json.js
@@ -1,8 +1,8 @@
Prism.languages.json = {
- 'property': /("|')(\b|\B)[\w-]+\1(?=\s*:)/ig,
+ 'property': /"(\b|\B)[\w-]+"(?=\s*:)/ig,
'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?)\b/g,
- 'string': /("|')(?!:)(\\?[^'"])*?\1(?!:)/g,
+ 'string': /"(?!:)(\\?[^'"])*?"(?!:)/g,
'punctuation': /[\{\};:]/g,
- 'boolean': /\b(true|TRUE|false|FALSE)\b/g,
- 'null': /\b(null|NULL)\b/g,
+ 'boolean': /\b(true|false)\b/gi,
+ 'null': /\bnull\b/gi,
};
\ No newline at end of file