Commit 8779ba8493dbe20dc8ca4700eec0260a6ed927e0

william malo 2013-05-10T16:32:07

Added missing operators for c-like languages

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/components/prism-clike.js b/components/prism-clike.js
index 3c0b24a..7a7be36 100644
--- a/components/prism-clike.js
+++ b/components/prism-clike.js
@@ -7,7 +7,7 @@ Prism.languages.clike = {
 	'keyword': /\b(if|else|while|do|for|return|in|instanceof|function|new|try|catch|finally|null|break|continue)\b/g,
 	'boolean': /\b(true|false)\b/g,
 	'number': /\b-?(0x)?\d*\.?[\da-f]+\b/g,
-	'operator': /[-+]{1,2}|!|=?<|=?>|={1,2}|(&){1,2}|\|?\||\?|\*|\//g,
+	'operator': /[-+]{1,2}|!|=?<|=?>|={1,2}|(&){1,2}|\|?\||\?|\*|\/|\~|\^|\%/g,
 	'ignore': /&(lt|gt|amp);/gi,
 	'punctuation': /[{}[\];(),.:]/g
 };
\ No newline at end of file