mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
misc/emacs: fix go-mode hang
Fix suggested by serbaut. Fixes #4445. R=sameer CC=golang-dev, serbaut https://golang.org/cl/6842102
This commit is contained in:
parent
b46de71457
commit
a93b15cad9
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ if no further tokens of the type exist."
|
|||
(if (or (>= (point) limit) (eobp))
|
||||
(setq result nil)
|
||||
(setq cs (go-mode-cs))
|
||||
(if cs
|
||||
(if (and cs (>= (car cs) (point)))
|
||||
(if (eq (= (char-after (car cs)) ?/) comment)
|
||||
;; If inside the expected comment/string, highlight it.
|
||||
(progn
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue