Skip to content

Commit

Permalink
Objective-C: Fix operator regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Aug 28, 2015
1 parent c03c8a4 commit e9d382e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-objectivec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Prism.languages.objectivec = Prism.languages.extend('c', {
'keyword': /\b(asm|typeof|inline|auto|break|case|char|const|continue|default|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|in|self|super)\b|(@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,
'string': /("|')(\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|@"(\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,
'operator': /[+=&|]{1,2}|!=?|<<?=?|>>?=?|\-[->]?|[~^%?*\/@]/
'operator': /-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/
});
2 changes: 1 addition & 1 deletion components/prism-objectivec.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e9d382e

Please sign in to comment.