Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go/scanner: bug? if scan.Init with Mode(0) #10213

Closed
achun opened this issue Mar 22, 2015 · 3 comments
Closed

go/scanner: bug? if scan.Init with Mode(0) #10213

achun opened this issue Mar 22, 2015 · 3 comments
Milestone

Comments

@achun
Copy link

achun commented Mar 22, 2015

when scan.Init with Mode(0) and a comment in source such as

a=1
// last comment

or

func x() {
// last comment
}

The lit of Scan results with the comment.

see http://play.golang.org/p/vsfNZGf3Pv

@bradfitz
Copy link
Contributor

/cc @griesemer

@griesemer griesemer self-assigned this Mar 23, 2015
@griesemer griesemer added this to the Go1.5 milestone Mar 23, 2015
@griesemer
Copy link
Contributor

Yes, indeed. The lit should be empty in this case. Thanks for reporting.

@achun
Copy link
Author

achun commented Mar 24, 2015

@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants