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

Side by Side Diff: lib/src/prism/components/prism-fsharp.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 1 month 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 unified diff | Download patch
OLDNEW
1 Prism.languages.fsharp = Prism.languages.extend('clike', { 1 Prism.languages.fsharp = Prism.languages.extend('clike', {
2 'comment': [ 2 'comment': [
3 { 3 {
4 pattern: /(^|[^\\])\(\*[\w\W]*?\*\)/, 4 pattern: /(^|[^\\])\(\*[\w\W]*?\*\)/,
5 lookbehind: true 5 lookbehind: true
6 }, 6 },
7 { 7 {
8 pattern: /(^|[^\\:])\/\/.*/, 8 pattern: /(^|[^\\:])\/\/.*/,
9 lookbehind: true 9 lookbehind: true
10 } 10 }
11 ], 11 ],
12 » 'keyword': /\b(abstract|and|as|assert|base|begin|class|default|delegate| do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|fun ction|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|ret urn|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|chec ked|component|const|constraint|constructor|continue|eager|event|external|fixed|f unctor|include|method|mixin|object|parallel|process|protected|pure|sealed|tailca ll|trait|virtual|volatile)\b/, 12 » 'keyword': /\b(?:let|return|use|yield)(?:!\B|\b)|\b(abstract|and|as|asse rt|base|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|excep tion|extern|false|finally|for|fun|function|global|if|in|inherit|inline|interface |internal|lazy|match|member|module|mutable|namespace|new|not|null|of|open|or|ove rride|private|public|rec|select|static|struct|then|to|true|try|type|upcast|val|v oid|when|while|with|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|compo nent|const|constraint|constructor|continue|eager|event|external|fixed|functor|in clude|method|mixin|object|parallel|process|protected|pure|sealed|tailcall|trait| virtual|volatile)\b/,
13 » 'string': /@?("""|"|')((\\|\n)?.)*?\1B?/, 13 » 'string': /(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|("|')(?:\\\1|\\?(?!\1)[\s\S ])*\1)B?/,
14 » 'preprocessor': /^\s*#.*/m,
15 'number': [ 14 'number': [
16 /\b-?0x[\da-fA-F]+(un|lf|LF)?\b/, 15 /\b-?0x[\da-fA-F]+(un|lf|LF)?\b/,
17 /\b-?0b[01]+(y|uy)?\b/, 16 /\b-?0b[01]+(y|uy)?\b/,
18 » » /\b-?(\d+\.|\d*\.?\d+)([fFmM]|[eE][+-]?\d+)?\b/, 17 » » /\b-?(\d*\.?\d+|\d+\.)([fFmM]|[eE][+-]?\d+)?\b/,
19 /\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/ 18 /\b-?\d+(y|uy|s|us|l|u|ul|L|UL|I)?\b/
20 ] 19 ]
20 });
21 Prism.languages.insertBefore('fsharp', 'keyword', {
22 'preprocessor': /^[^\r\n\S]*#.*/m
21 }); 23 });
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-elixir.min.js ('k') | lib/src/prism/components/prism-fsharp.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698