]> Cypherpunks repositories - gostls13.git/commit
misc/emacs: Fix indentation for code following multiline function declarations
authorDominik Honnef <dominik.honnef@gmail.com>
Wed, 13 Mar 2013 04:37:18 +0000 (21:37 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 13 Mar 2013 04:37:18 +0000 (21:37 -0700)
commit69eb3457279b1067e3c45e735d32916a41b87246
tree19cdb8b867dcf8aeb05ff3d64e9cdc680a2b910a
parentb4afe88973a0e6bcd7b1fec508ec6cebc1e863d8
misc/emacs: Fix indentation for code following multiline function declarations

Correctly indent the body of functions that have been declared
over multiple lines. See http://play.golang.org/p/MHMwNDbFyf for
an example.

Previously, the body of the function would be indented as deep as
the continuation line of the function declaration. Now it gets
indented as deep as the func keyword.

R=adonovan, cw, patrick.allen.higgins
CC=golang-dev
https://golang.org/cl/7628043
misc/emacs/go-mode.el