Commit 3b9a024d authored by Scott Lawrence's avatar Scott Lawrence Committed by Russ Cox

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

Fixes #1038.

R=aclements, rsc
CC=golang-dev
https://golang.org/cl/2111046
parent 479cbd6d
......@@ -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
......
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