Unescape symbols during parse

This commit is contained in:
Emery Hemingway 2023-12-22 23:21:01 +02:00
parent c622d39c3f
commit 32ed35adce
1 changed files with 3 additions and 1 deletions

View File

@ -183,7 +183,9 @@ proc parsePreserves*(text: string): Preserve[void] =
pushStack Value(kind: pkByteString, bytes: cast[seq[byte]](base64.decode(joinWhitespace($1))))
Preserves.Symbol <- Preserves.Symbol:
pushStack Value(kind: pkSymbol, symbol: Symbol $1)
var buf = newStringOfCap(len($1))
unescape(buf, $1)
pushStack Value(kind: pkSymbol, symbol: Symbol buf)
Preserves.Embedded <- Preserves.Embedded:
var v = stack.pop.value