]> Cypherpunks repositories - gostls13.git/commit
scanner: treat line comments like in Go
authorRobert Griesemer <gri@golang.org>
Wed, 30 Mar 2011 22:26:53 +0000 (15:26 -0700)
committerRobert Griesemer <gri@golang.org>
Wed, 30 Mar 2011 22:26:53 +0000 (15:26 -0700)
commite64d337726542492f5a3610229e4e112eda77389
tree0e51378b55e45ff9f2340e3073aa0b7b2e79440c
parente008757d64663eeb3dc4e434963638b9a9cb474d
scanner: treat line comments like in Go

- don't consume '\n' as part of line comment
(otherwise grammars where '\n' are tokens won't
see them after a line comment)

- permit line comments to end in EOF

R=r
CC=golang-dev
https://golang.org/cl/4277089
src/pkg/scanner/scanner.go
src/pkg/scanner/scanner_test.go