Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Unified Diff: polymer_1.0.4/bower_components/prism/components/prism-julia.js

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: polymer_1.0.4/bower_components/prism/components/prism-julia.js
diff --git a/polymer_1.0.4/bower_components/prism/components/prism-julia.js b/polymer_1.0.4/bower_components/prism/components/prism-julia.js
new file mode 100644
index 0000000000000000000000000000000000000000..e4373101685001b5133002d0fbcd8e44d04b8b20
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/components/prism-julia.js
@@ -0,0 +1,12 @@
+Prism.languages.julia= {
+ 'comment': {
+ pattern: /(^|[^\\])#.*?(\r?\n|$)/,
+ lookbehind: true
+ },
+ 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/,
+ '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/,
+ 'boolean' : /\b(true|false)\b/,
+ 'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
+ 'operator' : /[-+]{1,2}|=?<|=?>|!|={1,2}|&{1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/,
+ 'punctuation' : /[{}[\];(),.:]/
+};

Powered by Google App Engine
This is Rietveld 408576698