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

Side by Side Diff: lib/src/prism/components/prism-objectivec.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.objectivec = Prism.languages.extend('c', { 1 Prism.languages.objectivec = Prism.languages.extend('c', {
2 » 'keyword': /(\b(asm|typeof|inline|auto|break|case|char|const|continue|de fault|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|shor t|signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while| in|self|super)\b)|((?=[\w|@])(@interface|@end|@implementation|@protocol|@class|@ public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dy namic|@selector)\b)/, 2 » 'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|def ault|do|double|else|enum|extern|float|for|goto|if|int|long|register|return|short |signed|sizeof|static|struct|switch|typedef|union|unsigned|void|volatile|while|i n|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@prote cted|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@select or)\b/,
3 » 'string': /(?:("|')([^\n\\\1]|\\.|\\\r*\n)*?\1)|(@"([^\n\\"]|\\.|\\\r*\n )*?")/, 3 » 'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\ S])|[^"\\\r\n])*"/,
4 » 'operator': /[-+]{1,2}|!=?|<{1,2}=?|>{1,2}=?|\->|={1,2}|\^|~|%|&{1,2}|\| ?\||\?|\*|\/|@/ 4 » 'operator': /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
5 }); 5 });
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-nsis.min.js ('k') | lib/src/prism/components/prism-objectivec.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698