mirror of
https://github.com/golang/go
synced 2024-11-18 18:54:42 -07:00
bdebc07e97
There is an issue when highlighting a single character identifier if the cursor is on the right of it. This problem is a result of an assumption made in astutil.PathEnclosingInterval relating to the arguments passed in. Specifically, if start==end, the 1-char interval following start is used instead. As a result, we might not get an exact match so we should check the 1-char interval to the left of the passed in position to see if that is an exact match. Updates golang/go#34496 Change-Id: If689fdf695df6ec1bc1935088e50d3de055bd5db Reviewed-on: https://go-review.googlesource.com/c/tools/+/212137 Reviewed-by: Rebecca Stambler <rstambler@golang.org> Run-TryBot: Rohan Challa <rohan@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> |
||
---|---|---|
.. | ||
highlights.go |