1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:14:40 -07:00
go/src
Robert Griesemer 1afc37fa7e go/printer/gofmt: remove special case for multi-line raw strings
As a special case, multi-line raw strings (i.e., strings in `` quotes)
were not indented if they were the only token on a line. This heuristic
was meant to improve formatting for multi-line raw strings where sub-
sequent lines are not indented at the level of the surrounding code.
Multiple people have complained about this. Removing the heuristic
again because it makes the formatting more regular, easier to under-
stand, and simplifies the implementation.

- manual changes to ebnf/ebnf_test.go for readability
- gofmt -w src misc

Fixes #1643.

R=r, rsc
CC=golang-dev
https://golang.org/cl/4307045
2011-03-29 18:30:59 -07:00
..
cmd go/printer/gofmt: remove special case for multi-line raw strings 2011-03-29 18:30:59 -07:00
lib9 lib9, libmach: Change GOOS references to GOHOSTOS 2011-03-15 14:42:18 -04:00
libbio build: test for _WIN32, not _MINGW32 2010-09-08 22:20:35 -04:00
libmach lib9, libmach: Change GOOS references to GOHOSTOS 2011-03-15 14:42:18 -04:00
pkg go/printer/gofmt: remove special case for multi-line raw strings 2011-03-29 18:30:59 -07:00
all-qemu.bash build: add all-qemu.bash, handful of arm fixes 2011-03-27 23:39:42 -04:00
all.bash
clean.bash build: reenable clean.bash without gomake 2011-03-21 00:27:50 -03:00
env.bash build: move $GOBIN ahead of /bin, /usr/bin in build $PATH 2011-02-28 14:55:27 -05:00
make.bash build: diagnose Ubuntu's buggy copy of gold 2011-03-18 18:23:00 -04:00
Make.ccmd build: remove intermediate yacc files in Make.ccmd 2010-12-14 12:22:40 -05:00
Make.clib build: Allow archiver to be specified in the environment with HOST_AR. 2010-12-07 15:28:26 -05:00
Make.cmd build: remove duplicate dependency in Make.cmd 2011-03-14 12:33:44 -04:00
Make.common build: avoid calling gomake wrapper in recursive make 2011-03-05 14:53:29 -05:00
Make.inc goinstall: handle $(GOOS) and $(GOARCH) in filenames 2011-03-07 10:54:53 -05:00
Make.pkg testing: set up structure for faster testing using the new -test.short flag. 2011-03-25 14:50:44 -07:00
quietgcc.bash build: add GOHOSTOS and GOHOSTARCH environment variables. 2010-10-08 18:52:28 +11:00
run.bash build: add all-qemu.bash, handful of arm fixes 2011-03-27 23:39:42 -04:00
sudo.bash
version.bash build: handle broken awk in version.bash 2011-03-25 18:00:19 -04:00