]> Cypherpunks repositories - gostls13.git/commitdiff
go-mode.el: Fix highlighting for 'chan' type
authorScott Lawrence <bytbox@gmail.com>
Mon, 13 Sep 2010 04:12:18 +0000 (00:12 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 13 Sep 2010 04:12:18 +0000 (00:12 -0400)
Fixes #1038.

R=aclements, rsc
CC=golang-dev
https://golang.org/cl/2111046

misc/emacs/go-mode.el

index 0b022198874478b8e0dcb0b108b8b3ed3f98346b..2624e87cbd0686f2ec036e3d116eca2e7f0b55c7 100644 (file)
@@ -92,7 +92,7 @@ some syntax analysis.")
       ;; Map key type
       (,(concat "\\<map\\s *\\[" type-name) 1 font-lock-type-face)
       ;; Channel value type
-      (,(concat "\\<chan\\s *\\(?:<-\\)?" type-name) 1 font-lock-type-face)
+      (,(concat "\\<chan\\>\\s *\\(?:<-\\)?" type-name) 1 font-lock-type-face)
       ;; new/make type
       (,(concat "\\<\\(?:new\\|make\\)\\>\\(?:\\s \\|)\\)*(" type-name) 1 font-lock-type-face)
       ;; Type conversion