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

Unified Diff: polymer_1.0.4/bower_components/prism/components/prism-python.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-python.js
diff --git a/polymer_1.0.4/bower_components/prism/components/prism-python.js b/polymer_1.0.4/bower_components/prism/components/prism-python.js
new file mode 100644
index 0000000000000000000000000000000000000000..f04765b56c551a9d851969ff9bdcfba57cf7d015
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/components/prism-python.js
@@ -0,0 +1,13 @@
+Prism.languages.python= {
+ 'comment': {
+ pattern: /(^|[^\\])#.*?(\r?\n|$)/,
+ lookbehind: true
+ },
+ 'string': /"""[\s\S]+?"""|'''[\s\S]+?'''|("|')(\\?.)*?\1/,
+ 'keyword' : /\b(as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|pass|print|raise|return|try|while|with|yield)\b/,
+ 'boolean' : /\b(True|False)\b/,
+ 'number' : /\b-?(0[box])?(?:[\da-f]+\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,
+ 'operator' : /[-+]|<=?|>=?|!|={1,2}|&{1,2}|\|?\||\?|\*|\/|~|\^|%|\b(or|and|not)\b/,
+ 'punctuation' : /[{}[\];(),.:]/
+};
+

Powered by Google App Engine
This is Rietveld 408576698