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

Side by Side Diff: lib/src/prism/plugins/highlight-keywords/prism-highlight-keywords.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 (function(){ 1 (function(){
2 2
3 if (!self.Prism) { 3 if (
4 » typeof self !== 'undefined' && !self.Prism ||
5 » typeof global !== 'undefined' && !global.Prism
6 ) {
4 return; 7 return;
5 } 8 }
6 9
7 Prism.hooks.add('wrap', function(env) { 10 Prism.hooks.add('wrap', function(env) {
8 if (env.type !== "keyword") { 11 if (env.type !== "keyword") {
9 return; 12 return;
10 } 13 }
11 env.classes.push('keyword-' + env.content); 14 env.classes.push('keyword-' + env.content);
12 }); 15 });
13 16
14 })(); 17 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698