Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
becf6222
Commit
becf6222
authored
Jun 04, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allow &^= in assignments
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=29889 CL=29889
parent
f30fcf32
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
parser.go
src/lib/go/parser/parser.go
+2
-2
No files found.
src/lib/go/parser/parser.go
View file @
becf6222
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment