go/parser: exit early if source file does not contain text

Partial fix for issue 3943.

R=r
CC=golang-dev
http://codereview.appspot.com/6458115
exp/html: discard tags that are terminated by EOF instead of by '>'

If a tag doesn't have a closing '>', it isn't considered a tag;
it is just ignored and EOF is returned instead.

Pass one additional test in the test suite.

Change tokenizer tests to match correct behavior.

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6454131

Committer: Nigel Tao <nigeltao@golang.org>
runtime/pprof: fix comments

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6460082
net: remove unused fields

R=golang-dev, iant
CC=golang-dev
http://codereview.appspot.com/6454145
exp/html: generate replacement for <isindex> correctly

When generating replacement elements for an <isindex> tag, the old
addSyntheticElement method was producing the wrong nesting. Replace
it with parseImpliedToken.

Pass the one remaining test in the test suite.

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6453114

Committer: Nigel Tao <nigeltao@golang.org>
exp/proxy: remove package.

This package has moved to go.net.

R=golang-dev, minux.ma, r, dave
CC=golang-dev
http://codereview.appspot.com/6461056
go/scanner: faster scanning

Optimize some common cases.

benchmark            old ns/op    new ns/op    delta
BenchmarkScanFile       718907       667960   -7.09%

benchmark             old MB/s     new MB/s  speedup
BenchmarkScanFile        23.03        25.51    1.11x

R=r
CC=golang-dev
http://codereview.appspot.com/6454150
api: add recent API additions to next.txt

R=golang-dev, nigeltao, minux.ma
CC=golang-dev
http://codereview.appspot.com/6441138

Committer: Nigel Tao <nigeltao@golang.org>
5l: trivial whitespace cleanup

R=golang-dev, dave
CC=golang-dev
http://codereview.appspot.com/6446131

Committer: Nigel Tao <nigeltao@golang.org>
exp/html: skip render and reparse on more tests that build badly-formed parse trees

All of the remaining tests that had as status of PARSE rather than PASS had
good reasons for not passing the render-and-reparse step: the correct parse tree is
badly formed, so when it is rendered out as HTML, the result doesn't parse into the
same tree. So add them to the list of tests where that step is skipped.

Also, I discovered that it is possible to end up with HTML elements (not just text)
inside a raw text element through reparenting. So change the rendering routines to
handle that situation as sensibly as possible (which still isn't very sensible, but
this is HTML5).

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6446137

Committer: Nigel Tao <nigeltao@golang.org>
cmd/go: skipping relative paths on go test -i ./...

Fixes issue 3896.

R=rsc, rogpeppe, r
CC=golang-dev
http://codereview.appspot.com/6457075

Committer: Rob Pike <r@golang.org>
net: implement netbsd sockoptip

Provide sockoptip for NetBSD, based on sockoptip for OpenBSD.

R=golang-dev, rsc, mikioh.mikioh, minux.ma
CC=golang-dev
http://codereview.appspot.com/6308053
runtime: disable crash handler test on netbsd

Disable the crash handler test on NetBSD until I can figure out why
it triggers failures in later tests.

R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6460090
os/exec: disable additional file descriptor test on netbsd

This currently fails on NetBSD due to the cloned file descriptors
that result from opening /dev/urandom. Disable the additional checking
until this is investigated and properly fixed.

R=golang-dev, minux.ma
CC=golang-dev
http://codereview.appspot.com/6443129
text/scanner: report illegal hexadecimal numbers (bug fix)

R=r
CC=golang-dev
http://codereview.appspot.com/6450136
A+C: Andrew Lutomirski (individual CLA)

Wrote code that was the basis for
http://codereview.appspot.com/6454046/

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6450142
exp/html: simplify testing code

Now that the parser passes all tests in the test suite,
it is no longer necessary to keep track of which tests
pass and which don't. So remove the testlogs directory
and the code that uses it.

R=nigeltao
CC=golang-dev
http://codereview.appspot.com/6453124

Committer: Nigel Tao <nigeltao@golang.org>
cmd/gc: Don't claim type assertion would help when it wont.

Fixes issue 3465.

R=golang-dev, rsc, remyoudompheng, iant
CC=golang-dev
http://codereview.appspot.com/6448097

Committer: Ian Lance Taylor <iant@golang.org>
test: change run.go to ignore \r in compiler output (fixes windows build)

R=golang-dev, dave, minux.ma, remyoudompheng
CC=golang-dev
http://codereview.appspot.com/6460093
misc/cgo/test: remove unused Makefile

R=golang-dev, minux.ma, iant
CC=golang-dev
http://codereview.appspot.com/6459091