util.json: Fix for single-line comments (thanks Norbert Kiesel)
authorMatthew Wild <mwild1@gmail.com>
Wed, 26 Oct 2011 18:55:06 -0400
changeset 4404 5356664ef9d4
parent 4403 eb688e4397a5
child 4406 424e14d3f99b
util.json: Fix for single-line comments (thanks Norbert Kiesel)
util/json.lua
--- a/util/json.lua	Sun Oct 23 20:56:33 2011 +0200
+++ b/util/json.lua	Wed Oct 26 18:55:06 2011 -0400
@@ -168,7 +168,7 @@
 			skipwhitespace();
 			if ch == "/" and peek == "*" then
 				skipstarcomment();
-			elseif ch == "/" and peek == "*" then
+			elseif ch == "/" and peek == "/" then
 				skiplinecomment();
 			else
 				return;