fix string literal token value type
This commit is contained in:
parent
21c240660c
commit
5385a7509c
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ func (s *scanner) string() bool {
|
|||
|
||||
// todo: escape sequences
|
||||
value := s.source[s.start+1 : s.current-1]
|
||||
s.addToken(tokenTypeString, value)
|
||||
s.addToken(tokenTypeString, string(value))
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue