# HG changeset patch # User Matthew Wild # Date 1319669706 14400 # Node ID 5356664ef9d4d00d129c638baccb1dd6996a3058 # Parent eb688e4397a5da4546d30c9c00a6f4f63624e488 util.json: Fix for single-line comments (thanks Norbert Kiesel) diff -r eb688e4397a5 -r 5356664ef9d4 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;