misc/emacs: fix indent bug

Must use case-sensitive search to identify keywords.

Fixes #2287.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5182043
This commit is contained in:
Russ Cox 2011-10-05 12:27:23 -04:00
parent 351e1d5745
commit 305f167b01

View file

@ -355,7 +355,7 @@ indented one level."
(save-excursion
(back-to-indentation)
(let ((cs (go-mode-cs)))
(let ((cs (go-mode-cs)) (case-fold-search nil))
;; Treat comments and strings differently only if the beginning
;; of the line is contained within them
(when (and cs (= (point) (car cs)))