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

Side by Side Diff: lib/src/prism/components/prism-java.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-jade.min.js ('k') | lib/src/prism/components/prism-java.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.java = Prism.languages.extend('clike', { 1 Prism.languages.java = Prism.languages.extend('clike', {
2 'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|pack age|synchronized|boolean|do|if|private|this|break|double|implements|protected|th row|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|e xtends|int|short|try|char|final|interface|static|void|class|finally|long|strictf p|volatile|const|float|native|super|while)\b/, 2 'keyword': /\b(abstract|continue|for|new|switch|assert|default|goto|pack age|synchronized|boolean|do|if|private|this|break|double|implements|protected|th row|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|e xtends|int|short|try|char|final|interface|static|void|class|finally|long|strictf p|volatile|const|float|native|super|while)\b/,
3 » 'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+[e]?[\d]* [df]\b|\b\d*\.?\d+\b/i, 3 » 'number': /\b0b[01]+\b|\b0x[\da-f]*\.?[\da-fp\-]+\b|\b\d*\.?\d+(?:e[+-]? \d+)?[df]?\b/i,
4 'operator': { 4 'operator': {
5 » » pattern: /(^|[^\.])(?:\+=|\+\+?|-=|--?|!=?|<{1,2}=?|>{1,3}=?|==? |&=|&&?|\|=|\|\|?|\?|\*=?|\/=?|%=?|\^=?|:|~)/m, 5 » » pattern: /(^|[^.])(?:\+[+=]?|-[-=]?|!=?|<<?=?|>>?>?=?|==?|&[&=]? |\|[|=]?|\*=?|\/=?|%=?|\^=?|[?:~])/m,
6 lookbehind: true 6 lookbehind: true
7 } 7 }
8 }); 8 });
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-jade.min.js ('k') | lib/src/prism/components/prism-java.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698