]> Cypherpunks repositories - gostls13.git/commit
go/scanner: interpret //line directives sans filename sensibly
authorAlan Donovan <adonovan@google.com>
Wed, 16 Apr 2014 18:51:33 +0000 (14:51 -0400)
committerAlan Donovan <adonovan@google.com>
Wed, 16 Apr 2014 18:51:33 +0000 (14:51 -0400)
commitd079144190085da29ace309164e30f5a2bee492e
tree9884e237c7bc9013c8de4287ed6b66d938bb0088
parenta6d3cc2904e42338d31cca00024a153e7c1b502c
go/scanner: interpret //line directives sans filename sensibly

A //line directive without a filename now denotes the same
filename as the previous line (as in C).
Previously it denoted the file's directory (!).

Fixes #7765

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