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

Side by Side Diff: lib/src/prism/components/prism-rip.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
« no previous file with comments | « lib/src/prism/components/prism-rest.min.js ('k') | lib/src/prism/components/prism-rip.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Prism.languages.rip = { 1 Prism.languages.rip = {
2 » 'comment': /#[^\r\n]*(\r?\n|$)/, 2 » 'comment': /#.*/,
3 3
4 'keyword': /(?:=>|->)|\b(?:class|if|else|switch|case|return|exit|try|cat ch|finally|raise)\b/, 4 'keyword': /(?:=>|->)|\b(?:class|if|else|switch|case|return|exit|try|cat ch|finally|raise)\b/,
5 5
6 » 'builtin': /\b(@|System)\b/, 6 » 'builtin': /@|\bSystem\b/,
7 7
8 » 'boolean': /\b(true|false)\b/, 8 » 'boolean': /\b(?:true|false)\b/,
9 9
10 'date': /\b\d{4}-\d{2}-\d{2}\b/, 10 'date': /\b\d{4}-\d{2}-\d{2}\b/,
11 'time': /\b\d{2}:\d{2}:\d{2}\b/, 11 'time': /\b\d{2}:\d{2}:\d{2}\b/,
12 'datetime': /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/, 12 'datetime': /\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,
13 13
14 'number': /[+-]?(?:(?:\d+\.\d+)|(?:\d+))/,
15
16 'character': /\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/, 14 'character': /\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,
17 15
18 'regex': { 16 'regex': {
19 » » pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\r\n])+\/(?=\s*($|[\r\n ,.;})]))/, 17 » » pattern: /(^|[^/])\/(?!\/)(\[.+?]|\\.|[^/\\\r\n])+\/(?=\s*($|[\r \n,.;})]))/,
20 lookbehind: true 18 lookbehind: true
21 }, 19 },
22 20
23 'symbol': /:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/, 21 'symbol': /:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,
24 'string': /("|')(\\?.)*?\1/, 22 'string': /("|')(\\?.)*?\1/,
23 'number': /[+-]?(?:(?:\d+\.\d+)|(?:\d+))/,
25 24
26 'punctuation': /(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/, 25 'punctuation': /(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,
27 26
28 'reference': /[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/ 27 'reference': /[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/
29 }; 28 };
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-rest.min.js ('k') | lib/src/prism/components/prism-rip.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698