Updates how string unescaping works to be much more sane/reliable

This commit is contained in:
sloum 2022-10-15 21:35:03 -07:00
parent 5e7f2966eb
commit 576f36a0f2
3 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ func eval(exp expression, en *env) (value expression) {
value = ex.vars[e]
}
case string:
value = unescapeString(e)
value = e
case bool, number:
value = e
case exception:

View File

@ -227,7 +227,7 @@ TokenizationLoop:
tokens = append(tokens, t...)
case '"':
currentString = eatString(reader)
tokens = append(tokens, currentString)
tokens = append(tokens, unescapeString(currentString))
case ';':
eatSingleLineComment(reader)
case '#':

View File

@ -18,7 +18,7 @@ import (
ln "github.com/peterh/liner"
)
const version = "1.2.4"
const version = "1.2.5"
const globalLibPath = "/usr/local/lib/slope/modules/"