Commit a93b15ca authored by Russ Cox's avatar Russ Cox

misc/emacs: fix go-mode hang

Fix suggested by serbaut.

Fixes #4445.

R=sameer
CC=golang-dev, serbaut
https://golang.org/cl/6842102
parent b46de714
...@@ -432,7 +432,7 @@ if no further tokens of the type exist." ...@@ -432,7 +432,7 @@ if no further tokens of the type exist."
(if (or (>= (point) limit) (eobp)) (if (or (>= (point) limit) (eobp))
(setq result nil) (setq result nil)
(setq cs (go-mode-cs)) (setq cs (go-mode-cs))
(if cs (if (and cs (>= (car cs) (point)))
(if (eq (= (char-after (car cs)) ?/) comment) (if (eq (= (char-after (car cs)) ?/) comment)
;; If inside the expected comment/string, highlight it. ;; If inside the expected comment/string, highlight it.
(progn (progn
......
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