aboutsummaryrefslogtreecommitdiff
path: root/lib/json
diff options
context:
space:
mode:
Diffstat (limited to 'lib/json')
-rw-r--r--lib/json/json.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/json/json.tm b/lib/json/json.tm
index ab9b95dd..1ac19426 100644
--- a/lib/json/json.tm
+++ b/lib/json/json.tm
@@ -65,8 +65,8 @@ enum JSON(
string := ""
pos := 2
escapes := {"n"="\n", "t"="\t", "r"="\r", '"'='"', "\\"="\\", "/"="/", "b"="\b", "f"="\f"}
- while pos <= text.length
- c := text[pos]
+ repeat
+ c := text[pos] or stop
if c == '"'
if remainder
remainder[] = text.from(pos + 1)