Added support for full strings as dictionary keys.
h3rald h3rald@h3rald.com
Sat, 12 Dec 2020 22:25:32 +0100
1 files changed,
8 insertions(+),
2 deletions(-)
jump to
M
core/parser.nim
→
core/parser.nim
@@ -568,7 +568,10 @@ if i.val.kind == minProcOp:
v = "<native>" else: v = $i.val.val - d = d & v & " :" & $i.key & " " + var k = $i.key + if k.contains(" "): + k = "\"$1\"" % k + d = d & v & " :" & k & " " if a.objType != "": d = d & ";" & a.objType d = d.strip & "}"@@ -600,7 +603,10 @@ if i.val.kind == minProcOp:
v = "<native>" else: v = $i.val.val - d = d & v & " :" & $i.key & " " + var k = $i.key + if k.contains(" "): + k = "\"$1\"" % k + d = d & v & " :" & k & " " if a.objType != "": d = d & ";" & a.objType d = d.strip & "}"