diff options
author | Robert Griesemer <gri@golang.org> | 2009-06-04 13:43:19 -0700 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2009-06-04 13:43:19 -0700 |
commit | 2fe10da921dcb3846137fc413eed7e7c92181ca2 (patch) | |
tree | ecf6a74dc66434c333388bd87e31f1c40e013f04 /src/lib/go | |
parent | 1ebe5c9742f2a61e59a73a5c2aa1a2e0d3895ff7 (diff) | |
download | golang-2fe10da921dcb3846137fc413eed7e7c92181ca2.tar.gz |
allow &^= in assignments
R=r
DELTA=2 (0 added, 0 deleted, 2 changed)
OCL=29889
CL=29889
Diffstat (limited to 'src/lib/go')
-rw-r--r-- | src/lib/go/parser/parser.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/go/parser/parser.go b/src/lib/go/parser/parser.go index 622268d1e..056868695 100644 --- a/src/lib/go/parser/parser.go +++ b/src/lib/go/parser/parser.go @@ -155,7 +155,7 @@ func (p *parser) collectComment() int { // as there may be more whitespace lines after the comment.) endline := p.pos.Line; if p.lit[1] == '*' { - for i, b := range p.lit { + for _, b := range p.lit { if b == '\n' { endline++; } @@ -1240,7 +1240,7 @@ func (p *parser) parseSimpleStmt(label_ok bool) ast.Stmt { token.DEFINE, token.ASSIGN, token.ADD_ASSIGN, token.SUB_ASSIGN, token.MUL_ASSIGN, token.QUO_ASSIGN, token.REM_ASSIGN, token.AND_ASSIGN, token.OR_ASSIGN, - token.XOR_ASSIGN, token.SHL_ASSIGN, token.SHR_ASSIGN: + token.XOR_ASSIGN, token.SHL_ASSIGN, token.SHR_ASSIGN, token.AND_NOT_ASSIGN: // assignment statement pos, tok := p.pos, p.tok; p.next(); |