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
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
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
167 additions
and
229 deletions
+167
-229
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser.go
+164
-226
src/pkg/go/parser/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