Commit 23cd387044fe400da122c0bd572bed35962bad07

cdagnino 2015-01-11T17:53:06

Added basic support for the julia language

diff --git a/components.js b/components.js
index fb077e3..644b393 100644
--- a/components.js
+++ b/components.js
@@ -112,6 +112,10 @@ var components = {
 			"title": "Python",
 			"owner": "multipetros"
 		},
+		"julia": {
+            "title": "julia",
+            "owner": "cdagnino"
+        },
 		"sql": {
 			"title": "SQL",
 			"owner": "multipetros"
diff --git a/components/prism-julia.js b/components/prism-julia.js
new file mode 100644
index 0000000..70d016b
--- /dev/null
+++ b/components/prism-julia.js
@@ -0,0 +1,13 @@
+Prism.languages.julia= { 
+    'comment': {
+        pattern: /(^|[^\\])#.*?(\r?\n|$)/g,
+        lookbehind: true
+    },
+    'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/g,
+    'keyword' : /\b(abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|let|local|macro|module|print|println|quote|return|try|type|typealias|using|while)\b/g,
+    'boolean' : /\b(true|false)\b/g,
+    'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/gi,
+    'operator' : /[-+]{1,2}|=?<|=?>|!|={1,2}|(&){1,2}|(&){1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/g,
+    'ignore' : /&(lt|gt|amp);/gi,
+    'punctuation' : /[{}[\];(),.:]/g
+};
\ No newline at end of file
diff --git a/components/prism-julia.min.js b/components/prism-julia.min.js
new file mode 100644
index 0000000..0ef957c
--- /dev/null
+++ b/components/prism-julia.min.js
@@ -0,0 +1 @@
+Prism.languages.julia={comment:{pattern:/(^|[^\\])#.*?(\r?\n|$)/g,lookbehind:!0},string:/"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/g,keyword:/\b(abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|let|local|macro|module|print|println|quote|return|try|type|typealias|using|while)\b/g,"boolean":/\b(true|false)\b/g,number:/\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/gi,operator:/[-+]{1,2}|=?<|=?>|!|={1,2}|(&){1,2}|(&){1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/g,ignore:/&(lt|gt|amp);/gi,punctuation:/[{}[\];(),.:]/g};
\ No newline at end of file