]> Cypherpunks repositories - gostls13.git/commit
godoc: fix identifier search
authorRobert Griesemer <gri@golang.org>
Fri, 3 Feb 2012 17:20:53 +0000 (09:20 -0800)
committerRobert Griesemer <gri@golang.org>
Fri, 3 Feb 2012 17:20:53 +0000 (09:20 -0800)
commitf6f5ce87cdaad3ca4805f6a16bba3b6851fddf2d
tree595db8e7b125bd1325f69c10da0ff9cda21f553c
parentbd41831f66837f59428ae824b33979db9eaaf30c
godoc: fix identifier search

Thanks to Andrey Mirtchovski for tracking this down.

This was broken by CL 5528077 which removed the InsertSemis
flag from go/scanner - as a result, semicolons are now always
inserted and the respective indexer code checked for the
wrong token.

Replaced the code by a direct identifier test.

R=rsc
CC=golang-dev
https://golang.org/cl/5606065
src/cmd/godoc/index.go