Commit 08c800c84b6d422a0ebad63924fcedbfec3b58cc

Lea Verou 2013-05-13T16:08:57

Merge pull request #93 from gr2m/gh-pages prevent urls from being interpreted as comments

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/components/prism-clike.js b/components/prism-clike.js
index 3d53698..7fe04f3 100644
--- a/components/prism-clike.js
+++ b/components/prism-clike.js
@@ -1,6 +1,6 @@
 Prism.languages.clike = {
 	'comment': {
-		pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|[^:]?\/\/.*?(\r?\n|$))/g,
+		pattern: /(^|[^\\])(\/\*[\w\W]*?\*\/|(^|[^:])\/\/.*?(\r?\n|$))/g,
 		lookbehind: true
 	},
 	'string': /("|')(\\?.)*?\1/g,