mirror of
https://github.com/golang/go
synced 2024-11-21 13:54:43 -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:
parent
479cbd6d34
commit
3b9a024d29
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user