Software /
code /
prosody
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 |
parent | 4284:20979f124ad9 |
child | 4474: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;