added swift language
diff --git a/components.js b/components.js
index 785124a..b50f1d5 100644
--- a/components.js
+++ b/components.js
@@ -151,6 +151,11 @@ var components = {
title: 'Scala',
require: 'java',
owner: 'jozic'
+ },
+ 'swift': {
+ title: 'Swift',
+ require: 'clike',
+ owner: 'chrischares'
}
},
plugins: {
diff --git a/components/prism-swift.js b/components/prism-swift.js
new file mode 100644
index 0000000..127dbb7
--- /dev/null
+++ b/components/prism-swift.js
@@ -0,0 +1,4 @@
+Prism.languages.swift = Prism.languages.extend('clike', {
+ 'keyword': /\b(Array|as|associativity|break|case|Character|class|continue|deinit|default|Dictionary|didSet|do|Double|dynamicType|else|enum|fallthrough|Float|for|func|IBAction|if|import|in|infix|init|inout|is|left|let|mutating|new|none|nonmutating|operator|override|postfix|precedence|prefix|protocol|return|right|self|Self|set|String|struct|subscript|super|switch|Type|typealias|unowned|unowned(safe)|unowned(unsafe)|weak|where|while|willSet|var)\b/g,
+ 'number': /\b-?(0x[\dA-Fa-f]+|\d*\.?\d+([Ee]-?\d+)?|NaN|-?Infinity)\b/g
+});
\ No newline at end of file