Commit 62687ecce9de822abae3d3981f4a4f0541140d3c

Tzu-ping Chung 2014-06-26T03:59:26

objc -> objectivec

diff --git a/components.js b/components.js
index a5a06ff..9bc67b9 100644
--- a/components.js
+++ b/components.js
@@ -157,7 +157,7 @@ var components = {
 			"require": "clike",
 			"owner": "chrischares"
 		},
-		"objc": {
+		"objectivec": {
 			"title": "Objective-C",
 			"require": "c",
 			"owner": "uranusjr"
diff --git a/components/prism-objc.js b/components/prism-objc.js
deleted file mode 100644
index ed85ea2..0000000
--- a/components/prism-objc.js
+++ /dev/null
@@ -1,5 +0,0 @@
-Prism.languages.objc = Prism.languages.extend('c', {
-  'keyword': /(\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b)|((?=[\w|@])(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b)/g,
-  'string': /(?:("|')(\\?.)*?\1)|(?:@"(\\?.)*?")/g,
-  'operator': /[-+]{1,2}|!|<=?|>=?|={1,3}|&{1,2}|\|?\||\?|\*|\/|\~|\^|\%|@/g,
-});
diff --git a/components/prism-objectivec.js b/components/prism-objectivec.js
new file mode 100644
index 0000000..d5b2d09
--- /dev/null
+++ b/components/prism-objectivec.js
@@ -0,0 +1,5 @@
+Prism.languages.objectivec = Prism.languages.extend('c', {
+  'keyword': /(\b(asm|typeof|inline|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|in|self|super)\b)|((?=[\w|@])(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b)/g,
+  'string': /(?:("|')(\\?.)*?\1)|(?:@"(\\?.)*?")/g,
+  'operator': /[-+]{1,2}|!|<=?|>=?|={1,3}|&{1,2}|\|?\||\?|\*|\/|\~|\^|\%|@/g,
+});