Added escape sequences
This commit is contained in:
parent
85a6a957aa
commit
e5adcff1af
12 changed files with 87 additions and 7 deletions
|
@ -35,7 +35,7 @@ func (f *Function) Number(t token.Token) (int, error) {
|
|||
|
||||
case token.Rune:
|
||||
r := t.Bytes(f.File.Bytes)
|
||||
r = r[1 : len(r)-1]
|
||||
r = String(r)
|
||||
|
||||
if len(r) == 0 {
|
||||
return 0, errors.New(errors.InvalidRune, f.File, t.Position+1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue