Commit 305f167b authored by Russ Cox's avatar Russ Cox

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
parent 351e1d57
...@@ -355,7 +355,7 @@ indented one level." ...@@ -355,7 +355,7 @@ indented one level."
(save-excursion (save-excursion
(back-to-indentation) (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 ;; Treat comments and strings differently only if the beginning
;; of the line is contained within them ;; of the line is contained within them
(when (and cs (= (point) (car cs))) (when (and cs (= (point) (car cs)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment