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

Unified Diff: polymer_1.0.4/bower_components/prism/components/prism-csharp.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-csharp.js
diff --git a/polymer_1.0.4/bower_components/prism/components/prism-csharp.js b/polymer_1.0.4/bower_components/prism/components/prism-csharp.js
new file mode 100644
index 0000000000000000000000000000000000000000..50ee493ee109d3687ddcf0f437aec73e02a3aa4a
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/components/prism-csharp.js
@@ -0,0 +1,9 @@
+Prism.languages.csharp = Prism.languages.extend('clike', {
+ 'keyword': /\b(abstract|as|async|await|base|bool|break|byte|case|catch|char|checked|class|const|continue|decimal|default|delegate|do|double|else|enum|event|explicit|extern|false|finally|fixed|float|for|foreach|goto|if|implicit|in|int|interface|internal|is|lock|long|namespace|new|null|object|operator|out|override|params|private|protected|public|readonly|ref|return|sbyte|sealed|short|sizeof|stackalloc|static|string|struct|switch|this|throw|true|try|typeof|uint|ulong|unchecked|unsafe|ushort|using|virtual|void|volatile|while|add|alias|ascending|async|await|descending|dynamic|from|get|global|group|into|join|let|orderby|partial|remove|select|set|value|var|where|yield)\b/,
+ 'string': [
+ /@("|')(\1\1|\\\1|\\?(?!\1)[\s\S])*\1/,
+ /("|')(\\?.)*?\1/
+ ],
+ 'preprocessor': /^\s*#.*/m,
+ 'number': /\b-?(0x[\da-f]+|\d*\.?\d+)\b/i
+});

Powered by Google App Engine
This is Rietveld 408576698