Commit 70bf4215 authored by Robert Griesemer's avatar Robert Griesemer

scanner: better TokenString output

R=rsc
CC=golang-dev
https://golang.org/cl/4373048
parent 4ffee801
......@@ -115,7 +115,7 @@ func TokenString(tok int) string {
if s, found := tokenString[tok]; found {
return s
}
return fmt.Sprintf("U+%04X", tok)
return fmt.Sprintf("%q", string(tok))
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment