1
0
mirror of https://github.com/golang/go synced 2024-11-21 13:54:43 -07:00
The Go programming language
Go to file
Robert Griesemer 9520a68268 go/scanner: the position of '\n's chars must be the last position of the current line
Background: This didn't matter until recently, because '\n' don't appear as token starts
in source code and thus the exact position was irrelevant (and set as was easiest in the
code). With auto semicolon insertion, a virtual semicolon may be inserted when a '\n' is
seen. The position of the semicolon is the position of the '\n'. Without this fix, these
semicolons appeared on the next line instead of the line where they were inserted.  This
affected the association of comments to declarations in the parser. As a result, some
lead comments where considered line comments, not collected in the ast, and not shown in
godoc pages. (This affected only godoc pages, not gofmt-formatted programs).

Fixes #592.

R=rsc
CC=golang-dev
https://golang.org/cl/224068
2010-02-26 11:23:12 -08:00
doc doc: Use byte("...") over byte{...} 2010-02-25 20:06:41 -08:00
include Fix *l/*c -V flag segfault 2010-02-08 11:53:27 -08:00
lib remove absolute paths from search results 2010-02-19 10:09:20 -08:00
misc dashboard: more performance tuning 2010-02-25 10:26:43 -08:00
pkg more description 2009-10-15 23:08:46 -07:00
src go/scanner: the position of '\n's chars must be the last position of the current line 2010-02-26 11:23:12 -08:00
test strings: delete Runes, Bytes 2010-02-25 16:01:29 -08:00
.hgignore fix garbage benchmark Makefile. 2010-02-09 20:29:08 -08:00
.hgtags release.2010-02-23 part two 2010-02-23 16:40:42 -08:00
AUTHORS add micah.stetson to C&A 2010-02-26 16:32:45 +11:00
CONTRIBUTORS add micah.stetson to C&A 2010-02-26 16:32:45 +11:00
favicon.ico add a favicon plus a couple of hi-res versions of gordon 2009-10-26 10:13:07 -07:00
LICENSE Add an explicit patent grant to the Go license. 2010-01-25 15:39:32 -08:00
README add a README file, so that if someone finds a 2009-11-08 09:57:37 -08:00

This is the source code repository for the Go programming language.  

For documentation about how to install and use Go,
visit http://golang.org/ or load doc/install.html in your web browser.

After installing Go, you can view a nicely formatted
doc/install.html by running godoc --http=:6060
and then visiting http://localhost:6060/doc/install.html.

Unless otherwise noted, the Go source files are distributed
under the BSD-style license found in the LICENSE file.