Commit 1bf661f884ac4f93974af0dcaf01c2c37ad4bfc6

Lea Verou 2013-05-18T17:53:36

Added URLs in strings example

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/examples.html b/examples.html
index aadc454..943e736 100644
--- a/examples.html
+++ b/examples.html
@@ -199,6 +199,7 @@ var comment = /\/\*[\w\W]*?\*\//g;</code></pre>
 	<h2>Strings with slashes</h2>
 	<pre><code>env.content + '&lt;/' + env.tag + '>'</code></pre>
 	<pre><code>var foo = "/" + "/";</code></pre>
+	<pre><code>var foo = "http://prismjs.com"; // Strings are strings and comments are comments ;)</code></pre>
 
 	<h2>Regex inside single line comment</h2>
 	<pre><code>// hey, /this doesn’t fail!/ :D</code></pre>