summaryrefslogtreecommitdiff
path: root/script/lib/prism_bash.js
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-17 01:49:54 +0200
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-04-17 01:49:54 +0200
commit5b2a1813069ed9dfa2f4c5af56495aa051e67833 (patch)
treecd1633e03bdaf8482f601f4a9ffe79883c17886e /script/lib/prism_bash.js
parent11f03af4d82b1c23abade136eda4fabe8d32200d (diff)
Move external resources to "lib" folder, update makefile
Diffstat (limited to 'script/lib/prism_bash.js')
-rw-r--r--script/lib/prism_bash.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/script/lib/prism_bash.js b/script/lib/prism_bash.js
new file mode 100644
index 0000000..24d5025
--- /dev/null
+++ b/script/lib/prism_bash.js
@@ -0,0 +1,21 @@
+// @license magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt
+/*
+ * Ousía Website JS
+ *
+ * (c) Andreas Stöckel, 2015
+ *
+ * This work is licensed under the X11 (MIT) license.
+ * http://www.opensource.org/licenses/mit-license.php
+ */
+
+(function () {
+"use strict";
+Prism.languages.bash = {
+ 'comment': /#.*$/,
+ 'string': /("|')(\\\n|\\?.)*?\1/,
+ 'url': /http:\/\/[^\s]*/,
+ 'keyword': /(^| )(cd|mkdir|git|echo|clone|sudo|yum|apt-get|cmake|make|install)( |$)/
+};
+})();
+
+// @license-end