• Robert Griesemer's avatar
    go/printer, gofmt: don't print incorrect programs · 3d6b3685
    Robert Griesemer authored
    Be careful when printing line comments with incorrect
    position information. Maintain additional state
    impliedSemi: when set, a comment containing a newline
    would imply a semicolon and thus placement must be
    delayed.
    
    Precompute state information pertaining to the next
    comment for faster checks (the printer is marginally
    faster now despite additional checks for each comment).
    
    No effect on existing src, misc sources.
    
    Fixes #1505.
    
    R=rsc
    CC=golang-dev
    https://golang.org/cl/5598054
    3d6b3685
Name
Last commit
Last update
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...