mirror of
https://github.com/golang/go
synced 2024-11-24 21:00:09 -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
|
(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)))
|
||||||
|
Loading…
Reference in New Issue
Block a user