~ehmry/dhall-nim

85a7249f2f555b4d5af9b8ca53751924daeb3884 — Emery Hemingway 1 year, 2 months ago beb44dc 20230928
Escape keys containing '.'
1 files changed, 1 insertions(+), 1 deletions(-)

M src/dhall/render.nim
M src/dhall/render.nim => src/dhall/render.nim +1 -1
@@ 9,7 9,7 @@ func quoteLabel(s: string): string =
  of "", "if", "then", "else", "let", "in", "as", "using", "merge", "Infinity", "NaN", "Some", "toMap", "assert", "∀", "forall", "with":
    "`" & s & "`"
  else:
    if s.contains({'/', '"'}):
    if s.contains({'/', '"', '.'}):
      '`' & s & '`'
    else:
      s