mirror of
https://github.com/golang/go
synced 2024-11-21 16:44:43 -07:00
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:
parent
351e1d5745
commit
305f167b01
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user