Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
39b186da
Commit
39b186da
authored
Mar 06, 2012
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go/parser: fix build (temporarily disable recent change)
R=golang-dev CC=golang-dev
https://golang.org/cl/5752059
parent
67cbe943
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser.go
+6
-4
No files found.
src/pkg/go/parser/parser.go
View file @
39b186da
...
...
@@ -380,11 +380,13 @@ func (p *parser) seesComma(context string) bool {
if
p
.
tok
==
token
.
COMMA
{
return
true
}
if
p
.
tok
==
token
.
SEMICOLON
&&
p
.
lit
==
"
\n
"
{
p
.
error
(
p
.
pos
,
"missing ',' before newline in "
+
context
)
return
true
// "insert" the comma and continue
/*
if p.tok == token.SEMICOLON && p.lit == "\n" {
p.error(p.pos, "missing ',' before newline in "+context)
return true // "insert" the comma and continue
}
}
*/
return
false
}
...
...
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