diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-04-28 10:43:21 +0200 |
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-04-28 15:42:05 +0200 |
| commit | 368f838193ef1ab72de652b95d5912f10c59b8b3 (patch) | |
| tree | 874d8bafabd06cf7e5b7cd30d29ced297afcf2f0 /debian/patches/008-emacs-mode-key-literal-indent.patch | |
| parent | 912927f743d96110c4270794358f2082258a4199 (diff) | |
| download | golang-368f838193ef1ab72de652b95d5912f10c59b8b3.tar.gz | |
Updated patches for new release
Diffstat (limited to 'debian/patches/008-emacs-mode-key-literal-indent.patch')
| -rw-r--r-- | debian/patches/008-emacs-mode-key-literal-indent.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/008-emacs-mode-key-literal-indent.patch b/debian/patches/008-emacs-mode-key-literal-indent.patch new file mode 100644 index 000000000..6f11ed7ac --- /dev/null +++ b/debian/patches/008-emacs-mode-key-literal-indent.patch @@ -0,0 +1,19 @@ +--- a/misc/emacs/go-mode.el ++++ b/misc/emacs/go-mode.el +@@ -7,7 +7,6 @@ + ;;; To do: + + ;; * Indentation is *almost* identical to gofmt +-;; ** We think struct literal keys are labels and outdent them + ;; ** We disagree on the indentation of function literals in arguments + ;; ** There are bugs with the close brace of struct literals + ;; * Highlight identifiers according to their syntactic context: type, +@@ -401,7 +400,7 @@ indented one level." + (setq first nil)))) + + ;; case, default, and labels are outdented 1 level +- (when (looking-at "\\<case\\>\\|\\<default\\>\\|\\w+\\s *:\\(\\S.\\|$\\)") ++ (when (looking-at "\\<case\\>\\|\\<default\\>\\|\\w+[:space:]*:[:space:]**$") + (decf indent tab-width)) + + ;; Continuation lines are indented 1 level |
