Unescape symbols during parse
This commit is contained in:
parent
1a61f9537e
commit
98f6c295af
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue