Commit 122d13e9839283509c2f8744a171c4bc7c42b9bd

CupOfTea696 2014-09-22T20:42:39

Merging JSONP definition with JSON JSONP alias added to JSON.

diff --git a/components/prism-json.js b/components/prism-json.js
index f2750ad..509cc51 100644
--- a/components/prism-json.js
+++ b/components/prism-json.js
@@ -2,8 +2,16 @@ 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,
+    'function': {
+		pattern: /[a-z0-9_]+\(/ig,
+		inside: {
+			punctuation: /\(/
+		}
+	},
+    'punctuation': /[{}[\]);,]/g,
     'operator': /:/g,
     'boolean': /\b(true|false)\b/gi,
     'null': /\bnull\b/gi,
-};
\ No newline at end of file
+};
+
+Prism.languages.jsonp;
\ No newline at end of file
diff --git a/components/prism-jsonp.js b/components/prism-jsonp.js
deleted file mode 100644
index cf2055f..0000000
--- a/components/prism-jsonp.js
+++ /dev/null
@@ -1,9 +0,0 @@
-Prism.languages.jsonp = Prism.languages.extend('json',{
-    'function': {
-		pattern: /[a-z0-9_]+\(/ig,
-		inside: {
-			punctuation: /\(/
-		}
-	},
-    'punctuation': /[{}[\]);,]/g,
-});
\ No newline at end of file