summaryrefslogtreecommitdiff
path: root/src/pkg/go/token
AgeCommit message (Collapse)AuthorFilesLines
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-15/+39
2011-04-28Imported Upstream version 2011.04.27upstream/2011.04.27Ondřej Surý1-3/+2
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-7/+8
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý3-22/+75
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý4-41/+570
2010-03-02gofmt: experiment: align values in map composites where possibleRobert Griesemer1-51/+51
- gofmt -w src misc - looking for feedback R=rsc, r CC=golang-dev http://codereview.appspot.com/223076
2010-02-24go/scanner: support for complex (imaginary) constantsRobert Griesemer1-0/+2
R=rsc CC=golang-dev http://codereview.appspot.com/223044
2009-12-151) Change default gofmt default settings forRobert Griesemer1-121/+121
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 3rd set of files. R=rsc CC=golang-dev http://codereview.appspot.com/180048
2009-11-23go: makes it build for the case $GOROOT has whitespacesSergio Luis O. B. Correia1-2/+2
the bash scripts and makefiles for building go didn't take into account the fact $GOROOT / $GOBIN could both be directories containing whitespaces, and was not possible to build it in such a situation. this commit adjusts the various makefiles/scripts to make it aware of that possibility, and now it builds successfully when using a path with whitespaces as well. Fixes issue 115. R=rsc, dsymonds1 http://codereview.appspot.com/157067 Committer: Russ Cox <rsc@golang.org>
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-11/+11
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer1-15/+5
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-04gofmt-ify src/pkg/go (excluding printer directory due to pending CL,Robert Griesemer1-133/+133
and parser.go and scanner_test.go which have minor formatting issues) R=rsc http://go/go-review/1016042
2009-09-16make String work on Position values, to enableRuss Cox1-11/+9
fmt.Printf("%s: %s\n", expr.Pos(), message); R=gri DELTA=15 (1 added, 3 deleted, 11 changed) OCL=34706 CL=34708
2009-09-08documentation edits:Russ Cox1-63/+63
add comments showing Go syntax for each token. move doc comments below hidden begin constants R=gri DELTA=66 (3 added, 3 deleted, 60 changed) OCL=34334 CL=34445
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-53/+4
to whole-package compilation. R=r OCL=33070 CL=33101
2009-07-30- don't call String method of AST nodes when converting them to textRobert Griesemer1-7/+9
- make token.Position.String more robust TBR=rsc DELTA=20 (10 added, 6 deleted, 4 changed) OCL=32564 CL=32564
2009-07-30String method for token.Position. Extracted from gri's tree.Austin Clements1-1/+20
R=gri APPROVED=gri DELTA=33 (20 added, 6 deleted, 7 changed) OCL=32544 CL=32546
2009-07-20Fix typo. MUL_ASSIGN is "*=", not "+=".Austin Clements1-1/+1
R=gri APPROVED=gri DELTA=1 (0 added, 0 deleted, 1 changed) OCL=31879 CL=31886
2009-07-14- added Filename field to token.PositionRobert Griesemer1-0/+1
- handle //line filename:line comments in scanner - moved error handling code used by various scanner clients to errors.go - added extra tests R=rsc DELTA=385 (343 added, 18 deleted, 24 changed) OCL=31551 CL=31601
2009-06-09mv src/lib to src/pkgRob Pike2-0/+407
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102