From e620c9f3050cf855356cd09b53c77a91fe04ed53 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Thu, 31 Jul 2014 18:58:19 +0200 Subject: [PATCH] Additional notes on choices. We're changing it next to the latest one. Preserved for the record. --- lslopt/lsljson.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lslopt/lsljson.py b/lslopt/lsljson.py index a3b7d7b..421bdfb 100644 --- a/lslopt/lsljson.py +++ b/lslopt/lsljson.py @@ -149,7 +149,11 @@ def InternalJsonScanMatching(json, idx): # That would mean that a nested malformed string like [{]} would be valid. SL may accept that. # (Or maybe even just ONE nesting level variable for the current element, # disregarding the nesting of the other, e.g. if we're on an object, - # the [] are not tracked thus {[} would be valid. That sounds like LSL.) + # the [] are not tracked thus {[} would be valid. That sounds like LSL. + # Or track [] and {} as the same, distinguishing whether + # the one at nesting level 0 matches the first (e.g. {[{}}} would be valid) + # Or just track the current one and screw the other (e.g. {{]]][]{}][}} + # would be valid). That sounds even more like LSL. # Experiments are advisable. stk = [json[idx]] str = False