Updates how string unescaping works to be much more sane/reliable
This commit is contained in:
parent
5e7f2966eb
commit
576f36a0f2
@ -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:
|
||||
|
2
lexer.go
2
lexer.go
@ -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 '#':
|
||||
|
Loading…
Reference in New Issue
Block a user