Mercurial > prosody-hg
diff util/json.lua @ 4404:5356664ef9d4
util.json: Fix for single-line comments (thanks Norbert Kiesel)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Wed, 26 Oct 2011 18:55:06 -0400 |
| parents | 20979f124ad9 |
| children | b08a46cf06e6 |
line wrap: on
line diff
--- 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;
