go-mode.el: Fix highlighting for 'chan' type

Fixes #1038.

R=aclements, rsc
CC=golang-dev
https://golang.org/cl/2111046
This commit is contained in:
Scott Lawrence 2010-09-13 00:12:18 -04:00 committed by Russ Cox
parent 479cbd6d34
commit 3b9a024d29

View 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