• Robert Griesemer's avatar
    go/scanner: the position of '\n's chars must be the last position of the current line · 9520a682
    Robert Griesemer authored
    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
    9520a682
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libcgo Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.386 Loading commit data...
Make.amd64 Loading commit data...
Make.arm Loading commit data...
Make.cmd Loading commit data...
Make.conf Loading commit data...
Make.pkg Loading commit data...
all-arm.bash Loading commit data...
all-nacl.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...