]> Cypherpunks repositories - gostls13.git/commit
Emacs go-mode: don't indent the inside of strings.
authorPeter Kleiweg <pkleiweg@xs4all.nl>
Tue, 29 May 2012 20:30:06 +0000 (16:30 -0400)
committerSameer Ajmani <sameer@golang.org>
Tue, 29 May 2012 20:30:06 +0000 (16:30 -0400)
commit2d1fa08967a6bcb064f7690719ea9638866c7715
tree1f5e49be31ae29e9fa643d7cd2d9d72da366c22a
parentbd7c626348f3013ef307f9e3ae7c51708e2579eb
Emacs go-mode: don't indent the inside of strings.

Two fixes for indentation problems:

1. Properly recognize multi-line strings. These start with `, not ".

2. Don't indent a line if the beginning of the line is the end of a multi-line string. This happened for instance when inserting a closing bracket after a multi-line string.

R=sameer
CC=golang-dev
https://golang.org/cl/6157044
misc/emacs/go-mode.el