]> Cypherpunks repositories - gostls13.git/commit
go/scanner: interpret //line directives sans filename sensibly, second try.
authorAlan Donovan <adonovan@google.com>
Wed, 16 Apr 2014 20:17:50 +0000 (16:17 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 16 Apr 2014 20:17:50 +0000 (16:17 -0400)
commit0de521d111b88b2bc6466a4e1f29a8a284c0b3ee
treedc3ae80a1c9e11eb36887d047f10c8807597f61d
parent3af8d6fa4ae61a56350d09b886a9f18937fa5fb9
go/scanner: interpret //line directives sans filename sensibly, second try.

A //line directive without a filename now denotes the empty
filename, not the current directory (the Go 1.2 behaviour) nor
the previous //line's filename (the behaviour since CL
86990044).

They should never appear (but they do, e.g. due to a bug in godoc).

Fixes #7765

LGTM=gri, rsc
R=rsc, gri
CC=golang-codereviews
https://golang.org/cl/88160050
src/pkg/go/scanner/scanner.go
src/pkg/go/scanner/scanner_test.go