Fix handling of EscapeSequence: "\0" => 0x0000

This commit is contained in:
Robert Krimen
2012-10-20 12:29:15 -07:00
parent 6a91dad4c9
commit 1975167037

View File

@@ -286,6 +286,8 @@ func (self *_lexer) scanQuoteLiteral() _token {
text.WriteRune('\f')
case 'v':
text.WriteRune('\v')
case '0':
text.WriteRune(0)
default:
text.WriteRune(value)
case 'u':