fix string literal token value type

This commit is contained in:
basil 2025-06-07 21:12:26 -04:00
parent 21c240660c
commit 5385a7509c
Signed by: basil
SSH key fingerprint: SHA256:y04xIFL/yqNaG9ae9Vl95vELtHfApGAIoOGLeVLP/fE

View file

@ -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
}