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
97a08f7a
Commit
97a08f7a
authored
Dec 11, 2009
by
Robert Griesemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parser changed to reflect new semicolon rules
R=rsc
https://golang.org/cl/175046
parent
b9b89f56
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
parser.go
src/pkg/go/parser/parser.go
+0
-0
parser_test.go
src/pkg/go/parser/parser_test.go
+3
-3
No files found.
src/pkg/go/parser/parser.go
View file @
97a08f7a
This diff is collapsed.
Click to expand it.
src/pkg/go/parser/parser_test.go
View file @
97a08f7a
...
...
@@ -29,9 +29,9 @@ func TestParseIllegalInputs(t *testing.T) {
var
validPrograms
=
[]
interface
{}{
`package main`
,
`package main
import "fmt" func main() { fmt.Println("Hello, World!") }`
,
`package main
func main() { if f(T{}) {} }`
,
`package main
;
`
,
`package main
; import "fmt"; func main() { fmt.Println("Hello, World!") }`
+
"
\n
"
,
`package main
; func main() { if f(T{}) {} }`
+
"
\n
"
,
}
...
...
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