Commit d7f40d6c2f4e96634b8bbc29afdaf59c883efde0

Lea Verou 2013-05-18T07:24:36

Merge pull request #91 from williammalo/gh-pages C-like syntax (or at least javascript) is missing some operators.

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 bda722c..c8722bb 100644
--- a/components/prism-clike.js
+++ b/components/prism-clike.js
@@ -20,7 +20,7 @@ Prism.languages.clike = {
 		}
 	},
 	'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