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

Unified Diff: polymer_1.0.4/bower_components/prism/components/prism-fsharp.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-fsharp.js
diff --git a/polymer_1.0.4/bower_components/prism/components/prism-fsharp.js b/polymer_1.0.4/bower_components/prism/components/prism-fsharp.js
new file mode 100644
index 0000000000000000000000000000000000000000..cb4f5d5dd840f7eb56f04894a9b161c42099f986
--- /dev/null
+++ b/polymer_1.0.4/bower_components/prism/components/prism-fsharp.js
@@ -0,0 +1,21 @@
+Prism.languages.fsharp = Prism.languages.extend('clike', {
+ 'comment': [
+ {
+ pattern: /(^|[^\\])\(\*[\w\W]*?\*\)/,
+ lookbehind: true
+ },
+ {
+ pattern: /(^|[^\\:])\/\/.*/,
+ lookbehind: true
+ }
+ ],
+ 'keyword': /\b(abstract|and|as|assert|base|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|global|if|in|inherit|inline|interface|internal|lazy|let|let!|match|member|module|mutable|namespace|new|not|null|of|open|or|override|private|public|rec|return|return!|select|static|struct|then|to|true|try|type|upcast|use|use!|val|void|when|while|with|yield|yield!|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|include|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait|virtual|volatile)\b/,
+ 'string': /@?("""|"|')((\\|\n)?.)*?\1B?/,
+ 'preprocessor': /^\s*#.*/m,
+ 'number': [
+ /\b-?0x[\da-fA-F]+(un|lf|LF)?\b/,
+ /\b-?0b[01]+(y|uy)?\b/,
+ /\b-?(\d+\.|\d*\.?\d+)([fFmM]|[eE][+-]?\d+)?\b/,
+ /\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/
+ ]
+});

Powered by Google App Engine
This is Rietveld 408576698