diff options
Diffstat (limited to 'src/pkg/ebnf/parser.go')
-rw-r--r-- | src/pkg/ebnf/parser.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pkg/ebnf/parser.go b/src/pkg/ebnf/parser.go index d32b1b926..03cc4a756 100644 --- a/src/pkg/ebnf/parser.go +++ b/src/pkg/ebnf/parser.go @@ -72,8 +72,7 @@ func (p *parser) parseToken() *Token { pos := p.pos; value := ""; if p.tok == token.STRING { - var err os.Error; - value, err = strconv.Unquote(string(p.lit)); + value, _ = strconv.Unquote(string(p.lit)); // Unquote may fail with an error, but only if the scanner found // an illegal string in the first place. In this case the error // has already been reported. |