Commit 046db1e67a8a35cbfd3014db06c30c4b496fa29e

Golmote 2015-04-11T04:04:30

Merge pull request #566 from andreaslarsen/patch-3 Fixes same empty // comment error as in clike

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/components/prism-less.js b/components/prism-less.js
index 3328db8..0ed468c 100644
--- a/components/prism-less.js
+++ b/components/prism-less.js
@@ -10,7 +10,7 @@ Prism.languages.less = Prism.languages.extend('css', {
 	'comment': [
 		/\/\*[\w\W]*?\*\//,
 		{
-			pattern: /(^|[^\\])\/\/.+/,
+			pattern: /(^|[^\\])\/\/.*/,
 			lookbehind: true
 		}
 	],
@@ -57,4 +57,4 @@ Prism.languages.insertBefore('less', 'property', {
 		lookbehind: true,
 		alias: 'function'
 	}
-});
\ No newline at end of file
+});