From cf1c72ddedf8eac847d444c14b935733c762e05d Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Wed, 26 Oct 2011 18:55:06 -0400 Subject: util.json: Fix for single-line comments (thanks Norbert Kiesel) --- util/json.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/json.lua') diff --git a/util/json.lua b/util/json.lua index cfa84a4b..5d0b0876 100644 --- a/util/json.lua +++ b/util/json.lua @@ -168,7 +168,7 @@ function json.decode(json) skipwhitespace(); if ch == "/" and peek == "*" then skipstarcomment(); - elseif ch == "/" and peek == "*" then + elseif ch == "/" and peek == "/" then skiplinecomment(); else return; -- cgit v1.2.3