1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:57:58 -07:00

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 ;; Map key type
(,(concat "\\<map\\s *\\[" type-name) 1 font-lock-type-face) (,(concat "\\<map\\s *\\[" type-name) 1 font-lock-type-face)
;; Channel value type ;; 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 ;; new/make type
(,(concat "\\<\\(?:new\\|make\\)\\>\\(?:\\s \\|)\\)*(" type-name) 1 font-lock-type-face) (,(concat "\\<\\(?:new\\|make\\)\\>\\(?:\\s \\|)\\)*(" type-name) 1 font-lock-type-face)
;; Type conversion ;; Type conversion