Commit b13279dc624d955d0e3442144e77fe07e202869f

Lea Verou 2013-05-11T06:28:07

Merge pull request #92 from gr2m/gh-pages Probem with JS code that starts with `// comment`

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 3c0b24a..3d53698 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,